2022-03-22 16:03:15 +01:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
|
|
|
"github.com/edgelesssys/constellation/cli/proto"
|
2022-04-19 17:02:02 +02:00
|
|
|
"github.com/edgelesssys/constellation/coordinator/atls"
|
2022-04-20 15:32:54 +02:00
|
|
|
"github.com/edgelesssys/constellation/coordinator/state"
|
2022-03-22 16:03:15 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
type protoClient interface {
|
2022-04-19 17:02:02 +02:00
|
|
|
Connect(ip, port 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-04-25 17:21:58 +02:00
|
|
|
Activate(ctx context.Context, userPublicKey, masterSecret []byte, nodeIPs, coordinatorIPs, autoscalingNodeGroups []string, cloudServiceAccountURI string) (proto.ActivationResponseClient, error)
|
2022-03-22 16:03:15 +01:00
|
|
|
}
|