2022-03-22 11:03:15 -04:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-06-07 05:08:44 -04:00
|
|
|
"github.com/edgelesssys/constellation/cli/internal/proto"
|
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-06-01 09:08:42 -04:00
|
|
|
"github.com/edgelesssys/constellation/internal/atls"
|
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
|
|
|
}
|