Documentation ¶
Index ¶
- type Account
- func (account *Account) ApplyCache(c map[string]string)
- func (account *Account) Authenticate() (*gophercloud.ServiceClient, 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 Magnum
- func (magnum *Magnum) CreateCluster(name string, template string, nodes int) (common.Cluster, error)
- func (magnum *Magnum) DeleteCluster(token string) (common.Cluster, error)
- func (magnum *Magnum) GetCluster(token string) (common.Cluster, error)
- func (magnum *Magnum) GetClusterCredentials(token string) (*libcarina.CredentialsBundle, error)
- func (magnum *Magnum) GetQuotas() (common.Quotas, error)
- func (magnum *Magnum) GrowCluster(token string, nodes int) (common.Cluster, error)
- func (magnum *Magnum) ListClusterTemplates() ([]common.ClusterTemplate, error)
- func (magnum *Magnum) ListClusters() ([]common.Cluster, error)
- func (magnum *Magnum) RebuildCluster(token string) (common.Cluster, error)
- func (magnum *Magnum) ResizeCluster(token string, nodes int) (common.Cluster, error)
- func (magnum *Magnum) SetAutoScale(token string, value bool) (common.Cluster, error)
- func (magnum *Magnum) WaitUntilClusterIsActive(cluster common.Cluster) (common.Cluster, error)
- func (magnum *Magnum) 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 { AuthEndpoint string EndpointOverride string UserName string Password string Project string Domain string Region string // contains filtered or unexported fields }
Account is a set of authentication credentials accepted by OpenStack Identity (keystone) v2 and v3
func (*Account) ApplyCache ¶
ApplyCache applies a set of cached data
func (*Account) Authenticate ¶
func (account *Account) Authenticate() (*gophercloud.ServiceClient, error)
Authenticate creates an authenticated client, ready to use to communicate with the OpenStack Magnum 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. private-[endpoint hash]-[username]
func (*Account) GetID ¶
GetID returns a unique id for the account, e.g. private-[authendpoint hash]-[username]
func (*Account) NewClusterService ¶
func (account *Account) NewClusterService() common.ClusterService
NewClusterService create the appropriate ClusterService for the account
type Cluster ¶
Cluster is a Magnum cluster
func (*Cluster) GetStatusDetails ¶
GetStatusDetails returns additional information about the cluster's status. For example, why the cluster is in a failed state.
func (*Cluster) GetTemplate ¶
func (cluster *Cluster) GetTemplate() common.ClusterTemplate
GetTemplate returns the template used to create the cluster
type ClusterTemplate ¶
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 Magnum ¶
type Magnum struct { Account *Account // contains filtered or unexported fields }
Magnum is an adapter between the cli and the OpenStack COE API (Magnum)
func (*Magnum) CreateCluster ¶
func (magnum *Magnum) CreateCluster(name string, template string, nodes int) (common.Cluster, error)
CreateCluster creates a new cluster and prints the cluster information
func (*Magnum) DeleteCluster ¶
DeleteCluster permanently deletes a cluster by its id or name (if unique)
func (*Magnum) GetCluster ¶
GetCluster prints out a cluster's information to the console by its id or name (if unique)
func (*Magnum) GetClusterCredentials ¶
func (magnum *Magnum) 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 (*Magnum) GrowCluster ¶
GrowCluster adds nodes to a cluster by its id or name (if unique)
func (*Magnum) ListClusterTemplates ¶
func (magnum *Magnum) ListClusterTemplates() ([]common.ClusterTemplate, error)
ListClusterTemplates retrieves available templates for creating a new cluster
func (*Magnum) ListClusters ¶
ListClusters prints out a list of the user's clusters to the console
func (*Magnum) RebuildCluster ¶
RebuildCluster destroys and recreates the cluster by its id or name (if unique)
func (*Magnum) ResizeCluster ¶
ResizeCluster resizes a cluster to the specified number of nodes by its id or name (if unique)
func (*Magnum) SetAutoScale ¶
SetAutoScale is not supported
func (*Magnum) WaitUntilClusterIsActive ¶
WaitUntilClusterIsActive waits until the prior cluster operation is completed
type Quotas ¶
type Quotas struct { }
Quotas contains the quota information for a MagnumAccount
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