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-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-04-19 11:02:02 -04:00
|
|
|
Connect(ip, port 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-04-25 11:21:58 -04:00
|
|
|
Activate(ctx context.Context, userPublicKey, masterSecret []byte, nodeIPs, coordinatorIPs, autoscalingNodeGroups []string, cloudServiceAccountURI string) (proto.ActivationResponseClient, error)
|
2022-03-22 11:03:15 -04:00
|
|
|
}
|