Documentation ¶
Index ¶
- type Account
- func (account *Account) ApplyCache(c map[string]string)
- func (account *Account) Authenticate() (*libcarina.CarinaClient, error)
- func (account *Account) BuildCache() map[string]string
- func (account *Account) GetClusterPrefix() (string, error)
- func (account *Account) GetID() string
- func (account *Account) NewClusterService() common.ClusterService
- type Cluster
- func (cluster *Cluster) GetFlavor() string
- func (cluster *Cluster) GetID() string
- func (cluster *Cluster) GetName() string
- func (cluster *Cluster) GetNodes() string
- func (cluster *Cluster) GetStatus() string
- func (cluster *Cluster) GetStatusDetails() string
- func (cluster *Cluster) GetTemplate() common.ClusterTemplate
- type ClusterTemplate
- type MakeCOE
- func (carina *MakeCOE) CreateCluster(name string, template string, nodes int) (common.Cluster, error)
- func (carina *MakeCOE) DeleteCluster(token string) (common.Cluster, error)
- func (carina *MakeCOE) GetCluster(token string) (common.Cluster, error)
- func (carina *MakeCOE) GetClusterCredentials(token string) (*libcarina.CredentialsBundle, error)
- func (carina *MakeCOE) GetQuotas() (common.Quotas, error)
- func (carina *MakeCOE) GrowCluster(token string, nodes int) (common.Cluster, error)
- func (carina *MakeCOE) ListClusterTemplates() ([]common.ClusterTemplate, error)
- func (carina *MakeCOE) ListClusters() ([]common.Cluster, error)
- func (carina *MakeCOE) RebuildCluster(token string) (common.Cluster, error)
- func (carina *MakeCOE) ResizeCluster(token string, nodes int) (common.Cluster, error)
- func (carina *MakeCOE) SetAutoScale(token string, value bool) (common.Cluster, error)
- func (carina *MakeCOE) WaitUntilClusterIsActive(cluster common.Cluster) (common.Cluster, error)
- func (carina *MakeCOE) WaitUntilClusterIsDeleted(cluster common.Cluster) error
- type Quotas
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { // Optional custom endpoint specified by the user EndpointOverride string UserName string APIKey string Region string // Testing only, not used by the cli AuthEndpointOverride string // contains filtered or unexported fields }
Account is a set of authentication credentials accepted by Rackspace Identity
func (*Account) ApplyCache ¶
ApplyCache applies a set of cached data
func (*Account) Authenticate ¶
func (account *Account) Authenticate() (*libcarina.CarinaClient, error)
Authenticate creates an authenticated client, ready to use to communicate with the Carina API
func (*Account) BuildCache ¶
BuildCache builds the set of data to cache
func (*Account) GetClusterPrefix ¶
GetClusterPrefix returns a unique string to identity the account's clusters, e.g. public-[region]-[username]
func (*Account) NewClusterService ¶
func (account *Account) NewClusterService() common.ClusterService
NewClusterService create the appropriate ClusterService for the account
type Cluster ¶
Cluster represents a cluster on make-coe
func (*Cluster) GetStatusDetails ¶
GetStatusDetails is not supported
func (*Cluster) GetTemplate ¶
func (cluster *Cluster) GetTemplate() common.ClusterTemplate
GetTemplate returns the template used to create the cluster
type ClusterTemplate ¶
type ClusterTemplate struct {
*libcarina.ClusterType
}
ClusterTemplate represents a cluster template for make-coe
func (*ClusterTemplate) GetCOE ¶
func (template *ClusterTemplate) GetCOE() string
GetCOE returns the container orchestration engine used by the cluster
func (*ClusterTemplate) GetHostType ¶
func (template *ClusterTemplate) GetHostType() string
GetHostType returns the underlying type of the host nodes, such as lxc or vm
func (*ClusterTemplate) GetName ¶
func (template *ClusterTemplate) GetName() string
GetName returns the unique template name
type MakeCOE ¶
type MakeCOE struct { Account *Account // contains filtered or unexported fields }
MakeCOE is an adapter between the cli and Carina (make-coe)
func (*MakeCOE) CreateCluster ¶
func (carina *MakeCOE) CreateCluster(name string, template string, nodes int) (common.Cluster, error)
CreateCluster creates a new cluster and prints the cluster information
func (*MakeCOE) DeleteCluster ¶
DeleteCluster permanently deletes a cluster by its id or name (if unique)
func (*MakeCOE) GetCluster ¶
GetCluster prints out a cluster's information to the console by its id or name (if unique)
func (*MakeCOE) GetClusterCredentials ¶
func (carina *MakeCOE) GetClusterCredentials(token string) (*libcarina.CredentialsBundle, error)
GetClusterCredentials retrieves the TLS certificates and configuration scripts for a cluster by its id or name (if unique)
func (*MakeCOE) GrowCluster ¶
GrowCluster adds nodes to a cluster by its id or name (if unique)
func (*MakeCOE) ListClusterTemplates ¶
func (carina *MakeCOE) ListClusterTemplates() ([]common.ClusterTemplate, error)
ListClusterTemplates retrieves available templates for creating a new cluster
func (*MakeCOE) ListClusters ¶
ListClusters prints out a list of the user's clusters to the console
func (*MakeCOE) RebuildCluster ¶
RebuildCluster destroys and recreates the cluster by its id or name (if unique)
func (*MakeCOE) ResizeCluster ¶
ResizeCluster resizes the cluster to the specified number of nodes
func (*MakeCOE) SetAutoScale ¶
SetAutoScale is not supported
func (*MakeCOE) WaitUntilClusterIsActive ¶
WaitUntilClusterIsActive waits until the prior cluster operation is completed
type Quotas ¶
type Quotas struct{}
Quotas contains the quota information for a CarinaAccount
func (*Quotas) GetMaxClusters ¶
GetMaxClusters returns the maximum number of clusters allowed on the account
func (*Quotas) GetMaxNodesPerCluster ¶
GetMaxNodesPerCluster returns the maximum number of nodes allowed in a cluster on the account