Documentation ¶
Index ¶
- func Create(req clusterapi.Request) (clusterapi.Cluster, error)
- func Load(data *metadata.Cluster) (clusterapi.Cluster, error)
- type Cluster
- func (c *Cluster) AddNode(public bool, req *pb.HostDefinition) (string, error)
- func (c *Cluster) AddNodes(count int, public bool, req *pb.HostDefinition) ([]string, error)
- func (c *Cluster) CountNodes(public bool) uint
- func (c *Cluster) Delete() error
- func (c *Cluster) DeleteLastNode(public bool) error
- func (c *Cluster) DeleteSpecificNode(hostID string) error
- func (c *Cluster) FindAvailableMaster() (string, error)
- func (c *Cluster) FindAvailableNode(public bool) (string, error)
- func (c *Cluster) ForceGetState() (ClusterState.Enum, error)
- func (c *Cluster) GetConfig() clusterapi.ClusterCore
- func (c *Cluster) GetExtension(ctx Extension.Enum) interface{}
- func (c *Cluster) GetName() string
- func (c *Cluster) GetNetworkID() string
- func (c *Cluster) GetNode(hostID string) (*pb.Host, error)
- func (c *Cluster) GetState() (ClusterState.Enum, error)
- func (c *Cluster) ListMasterIDs() []string
- func (c *Cluster) ListMasterIPs() []string
- func (c *Cluster) ListNodeIDs(public bool) []string
- func (c *Cluster) ListNodeIPs(public bool) []string
- func (c *Cluster) Reload() error
- func (c *Cluster) SearchNode(hostID string, public bool) bool
- func (c *Cluster) SetExtension(ctx Extension.Enum, info interface{})
- func (c *Cluster) Start() error
- func (c *Cluster) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(req clusterapi.Request) (clusterapi.Cluster, error)
Create creates the necessary infrastructure of cluster
Types ¶
type Cluster ¶
type Cluster struct { // Core cluster data Core *clusterapi.ClusterCore // contains filtered or unexported fields }
Cluster is the object describing a cluster
func (*Cluster) CountNodes ¶
CountNodes returns the number of public or private nodes in the cluster
func (*Cluster) Delete ¶
Delete destroys everything related to the infrastructure built for the cluster
func (*Cluster) DeleteLastNode ¶
DeleteLastNode deletes the last Agent node added
func (*Cluster) DeleteSpecificNode ¶
DeleteSpecificNode deletes the node specified by its ID
func (*Cluster) FindAvailableMaster ¶
FindAvailableMaster returns the ID of the first master available for execution
func (*Cluster) FindAvailableNode ¶
FindAvailableNode returns the ID of a node available
func (*Cluster) ForceGetState ¶
func (c *Cluster) ForceGetState() (ClusterState.Enum, error)
ForceGetState returns the current state of the cluster Does nothing currently...
func (*Cluster) GetConfig ¶
func (c *Cluster) GetConfig() clusterapi.ClusterCore
GetConfig returns the public properties of the cluster
func (*Cluster) GetExtension ¶
GetExtension returns additional info of the cluster
func (*Cluster) GetNetworkID ¶
GetNetworkID returns the ID of the network used by the cluster
func (*Cluster) GetState ¶
func (c *Cluster) GetState() (ClusterState.Enum, error)
GetState returns the current state of the cluster
func (*Cluster) ListMasterIDs ¶
ListMasterIDs lists the master nodes in the cluster No masters in BOH...
func (*Cluster) ListMasterIPs ¶
ListMasterIPs lists the master nodes in the cluster No masters in BOH...
func (*Cluster) ListNodeIDs ¶
ListNodeIDs lists the IDs of the nodes in the cluster
func (*Cluster) ListNodeIPs ¶
ListNodeIPs lists the IPs of the nodes in the cluster
func (*Cluster) SearchNode ¶
SearchNode tells if an host ID corresponds to a node of the cluster
func (*Cluster) SetExtension ¶
SetExtension returns additional info of the cluster