2022-03-22 11:03:15 -04:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/edgelesssys/constellation/cli/proto"
|
2022-04-19 11:02:02 -04:00
|
|
|
"github.com/edgelesssys/constellation/coordinator/atls"
|
2022-05-16 11:32:00 -04:00
|
|
|
"github.com/edgelesssys/constellation/coordinator/pubapi/pubproto"
|
2022-04-20 09:32:54 -04:00
|
|
|
"github.com/edgelesssys/constellation/coordinator/state"
|
2022-03-22 11:03:15 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
type protoClient interface {
|
2022-05-06 07:56:02 -04:00
|
|
|
Connect(endpoint string, validators []atls.Validator) error
|
2022-03-22 11:03:15 -04:00
|
|
|
Close() error
|
2022-04-20 09:32:54 -04:00
|
|
|
GetState(ctx context.Context) (state.State, error)
|
2022-05-16 11:32:00 -04:00
|
|
|
Activate(ctx context.Context, userPublicKey, masterSecret []byte, nodeIPs, coordinatorIPs, autoscalingNodeGroups []string, cloudServiceAccountURI string, sshUsers []*pubproto.SSHUserKey) (proto.ActivationResponseClient, error)
|
2022-03-22 11:03:15 -04:00
|
|
|
}
|