cmaaws

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AWSProvider = "AWS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSSpec

type AWSSpec struct {
	DataCenter         DataCenter
	Credentials        Credentials
	PreconfiguredItems PreconfiguredItems
	InstanceGroups     []InstanceGroup
}

type Client

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

func (*Client) Close

func (a *Client) Close() error

func (*Client) CreateCluster

func (a *Client) CreateCluster(input CreateClusterInput) (CreateClusterOutput, error)

func (*Client) CreateNewClient

func (a *Client) CreateNewClient(hostname string, insecure bool) error

func (*Client) DeleteCluster

func (a *Client) DeleteCluster(input DeleteClusterInput) (DeleteClusterOutput, error)

func (*Client) GetCluster

func (a *Client) GetCluster(input GetClusterInput) (GetClusterOutput, error)

func (*Client) ListClusters

func (a *Client) ListClusters(input ListClusterInput) (ListClusterOutput, error)

func (*Client) SetClient

func (a *Client) SetClient(client pb.ClusterClient)

type ClientInterface

type ClientInterface interface {
	CreateCluster(CreateClusterInput) (CreateClusterOutput, error)
	GetCluster(GetClusterInput) (GetClusterOutput, error)
	DeleteCluster(DeleteClusterInput) (DeleteClusterOutput, error)
	ListClusters(ListClusterInput) (ListClusterOutput, error)
	CreateNewClient(string, bool) error
	Close() error
	SetClient(client pb.ClusterClient)
}

func CreateNewClient

func CreateNewClient(hostname string, insecure bool) (ClientInterface, error)

type ClusterDetailItem

type ClusterDetailItem struct {
	ID         string
	Name       string
	Status     string
	Kubeconfig string
}

type ClusterItem

type ClusterItem struct {
	ID     string
	Name   string
	Status string
}

type CreateClusterInput

type CreateClusterInput struct {
	Name             string
	K8SVersion       string
	AWS              AWSSpec
	HighAvailability bool
	NetworkFabric    string
}

type CreateClusterOutput

type CreateClusterOutput struct {
	Cluster ClusterItem
}

type Credentials

type Credentials struct {
	SecretKeyID     string
	SecretAccessKey string
	Region          string
}

type DataCenter

type DataCenter struct {
	Region            string
	AvailabilityZones []string
}

type DeleteClusterInput

type DeleteClusterInput struct {
	Name        string
	Credentials Credentials
}

type DeleteClusterOutput

type DeleteClusterOutput struct {
	Status string
}

type GetClusterInput

type GetClusterInput struct {
	Name        string
	Credentials Credentials
}

type GetClusterOutput

type GetClusterOutput struct {
	Cluster ClusterDetailItem
}

type InstanceGroup

type InstanceGroup struct {
	Type        string
	MinQuantity int
	MaxQuantity int
}

type ListClusterInput

type ListClusterInput struct {
	Credentials Credentials
}

type ListClusterOutput

type ListClusterOutput struct {
	Clusters []ClusterItem
}

type PreconfiguredItems

type PreconfiguredItems struct {
	VPCID           string
	SecurityGroupID string
	IAMRoleARN      string
}

Jump to

Keyboard shortcuts

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