aws

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

func IsEnabled

func IsEnabled() bool

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func (*Client) Close

func (c *Client) Close() error

func (*Client) CreateCluster

func (c *Client) CreateCluster(in *pb.CreateClusterMsg) (*pb.CreateClusterReply, error)

func (*Client) CreateNewClients

func (c *Client) CreateNewClients() error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL