constellation/cli/cmd/protoclient.go

17 lines
556 B
Go
Raw Normal View History

package cmd
import (
"context"
"github.com/edgelesssys/constellation/cli/proto"
2022-04-19 15:02:02 +00:00
"github.com/edgelesssys/constellation/coordinator/atls"
2022-04-20 13:32:54 +00:00
"github.com/edgelesssys/constellation/coordinator/state"
)
type protoClient interface {
Connect(endpoint string, validators []atls.Validator) error
Close() error
2022-04-20 13:32:54 +00:00
GetState(ctx context.Context) (state.State, error)
Activate(ctx context.Context, userPublicKey, masterSecret []byte, nodeIPs, coordinatorIPs, autoscalingNodeGroups []string, cloudServiceAccountURI string) (proto.ActivationResponseClient, error)
}