Documentation ¶
Index ¶
- Constants
- func IsEnabled() bool
- type Client
- func (c *Client) Close() error
- func (c *Client) CreateCluster(in *pb.CreateClusterMsg) (*pb.CreateClusterReply, error)
- func (c *Client) CreateNewClients() error
- func (c *Client) DeleteCluster(in *pb.DeleteClusterMsg) (*pb.DeleteClusterReply, error)
- func (c *Client) GetCluster(in *pb.GetClusterMsg) (*pb.GetClusterReply, error)
- func (c *Client) GetClusterList(in *pb.GetClusterListMsg) (*pb.GetClusterListReply, error)
- func (c *Client) SetCMAAWSClient(client cmaaws.ClientInterface)
- func (c *Client) SetCMAK8sClient(client cmak8sutil.ClientInterface)
- func (c *Client) SetSecretClient(client awsk8sutil.ClientInterface)
- func (c *Client) UpdateCredentials(in *pb.UpdateAWSCredentialsMsg) (*pb.UpdateAWSCredentialsReply, error)
- type ClientInterface
Constants ¶
View Source
const ( CMAAWSEndpointViperVariableName = "cmaaws-endpoint" CMAAWSInsecureViperVariableName = "cmaaws-insecure" NotEnabledErrorMessage = "aws support is not enabled" )
View Source
const ( BodyMissingError = "No input data provided" CallbackMissingError = "Callback is not provided" AWSArgumentsMissingError = "AWS section is not provided" CredentialsMissingError = "Credentials section is not provided" ResourcesMissingError = "Resources section is not provided" DataCenterMissingError = "DataCenter section is not provided" InstanceGroupsMissingError = "InstanceGroups section is empty" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateCluster ¶
func (c *Client) CreateCluster(in *pb.CreateClusterMsg) (*pb.CreateClusterReply, error)
func (*Client) CreateNewClients ¶
func (*Client) DeleteCluster ¶
func (c *Client) DeleteCluster(in *pb.DeleteClusterMsg) (*pb.DeleteClusterReply, error)
func (*Client) GetCluster ¶
func (c *Client) GetCluster(in *pb.GetClusterMsg) (*pb.GetClusterReply, error)
func (*Client) GetClusterList ¶
func (c *Client) GetClusterList(in *pb.GetClusterListMsg) (*pb.GetClusterListReply, error)
func (*Client) SetCMAAWSClient ¶
func (c *Client) SetCMAAWSClient(client cmaaws.ClientInterface)
func (*Client) SetCMAK8sClient ¶
func (c *Client) SetCMAK8sClient(client cmak8sutil.ClientInterface)
func (*Client) SetSecretClient ¶
func (c *Client) SetSecretClient(client awsk8sutil.ClientInterface)
func (*Client) UpdateCredentials ¶
func (c *Client) UpdateCredentials(in *pb.UpdateAWSCredentialsMsg) (*pb.UpdateAWSCredentialsReply, error)
type ClientInterface ¶
type ClientInterface interface { CreateCluster(in *pb.CreateClusterMsg) (*pb.CreateClusterReply, error) GetCluster(in *pb.GetClusterMsg) (*pb.GetClusterReply, error) GetClusterList(in *pb.GetClusterListMsg) (*pb.GetClusterListReply, error) DeleteCluster(in *pb.DeleteClusterMsg) (*pb.DeleteClusterReply, error) UpdateCredentials(in *pb.UpdateAWSCredentialsMsg) (*pb.UpdateAWSCredentialsReply, error) SetCMAAWSClient(client cmaaws.ClientInterface) SetSecretClient(client awsk8sutil.ClientInterface) SetCMAK8sClient(client cmak8sutil.ClientInterface) Close() error }
func CreateFromDefaults ¶
func CreateFromDefaults() (ClientInterface, error)
Click to show internal directories.
Click to hide internal directories.