mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-26 01:31:26 -05:00

* Simplify `fetch_pcrs.sh` script * Allow waiting for multiple states Signed-off-by: Daniel Weiße <dw@edgeless.systems>
16 lines
285 B
Go
16 lines
285 B
Go
package cmd
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/edgelesssys/constellation/coordinator/state"
|
|
)
|
|
|
|
type stubStatusWaiter struct {
|
|
waitForAllErr error
|
|
}
|
|
|
|
func (w stubStatusWaiter) WaitForAll(ctx context.Context, endpoints []string, status ...state.State) error {
|
|
return w.waitForAllErr
|
|
}
|