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