Documentation ¶
Index ¶
- Constants
- func RegToHost(node *client.HostNode, opt string)
- type Cluster
- func (n *Cluster) CacheNode(node *client.HostNode)
- func (n *Cluster) CheckNodeInstall(node *client.HostNode)
- func (n *Cluster) GetAllNode() (nodes []*client.HostNode)
- func (n *Cluster) GetLabelsNode(labels map[string]string) []string
- func (n *Cluster) GetNode(id string) *client.HostNode
- func (n *Cluster) InstallNode()
- func (n *Cluster) RemoveNode(nodeID string)
- func (n *Cluster) Start(errchan chan error) error
- func (n *Cluster) Stop(i interface{})
- func (n *Cluster) UnlockUpdateNode(node *client.HostNode)
- func (n *Cluster) UpdateNode(node *client.HostNode)
- func (n *Cluster) UpdateNodeCondition(nodeID, ctype, cvalue string)
Constants ¶
View Source
const ( Running = "running" Offline = "offline" Unknown = "unknown" Error = "error" Init = "init" InitSuccess = "init_success" InitFailed = "init_failed" Installing = "installing" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster node controller
func CreateCluster ¶
func CreateCluster(kubecli kubecache.KubeClient, node *client.HostNode, datacenterConfig *config.DataCenterConfig) *Cluster
CreateCluster create node controller
func (*Cluster) CheckNodeInstall ¶
CheckNodeInstall 简称节点是否安装 rainbond node 如果未安装,尝试安装
func (*Cluster) GetAllNode ¶
GetAllNode 获取全部节点
func (*Cluster) GetLabelsNode ¶
GetLabelsNode 返回匹配labels的节点ID
func (*Cluster) UnlockUpdateNode ¶
UpdateNode 更新节点信息
func (*Cluster) UpdateNodeCondition ¶
UpdateNodeCondition 更新节点状态
Click to show internal directories.
Click to hide internal directories.