node

package
v3.6.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2018 License: LGPL-3.0 Imports: 20 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegToHost

func RegToHost(node *model.HostNode, opt string)

RegToHost regist node id to hosts file

Types

type Cluster

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

Cluster node controller

func CreateCluster

func CreateCluster(k8sClient *kubernetes.Clientset, node *model.HostNode, datacenterConfig *config.DataCenterConfig) *Cluster

CreateCluster create node controller

func (*Cluster) CacheNode

func (n *Cluster) CacheNode(node *model.HostNode)

CacheNode 添加节点到缓存

func (*Cluster) CheckNodeInstall

func (n *Cluster) CheckNodeInstall(node *model.HostNode)

CheckNodeInstall 简称节点是否安装 rainbond node 如果未安装,尝试安装

func (*Cluster) GetAllNode

func (n *Cluster) GetAllNode() (nodes []*model.HostNode)

GetAllNode 获取全部节点

func (*Cluster) GetLabelsNode

func (n *Cluster) GetLabelsNode(labels map[string]string) []string

GetLabelsNode 返回匹配labels的节点ID

func (*Cluster) GetNode

func (n *Cluster) GetNode(id string) *model.HostNode

GetNode 从缓存获取节点信息

func (*Cluster) InstallNode

func (n *Cluster) InstallNode()

InstallNode 安装节点

func (*Cluster) RemoveNode

func (n *Cluster) RemoveNode(nodeID string)

RemoveNode 从缓存移除节点

func (*Cluster) Start

func (n *Cluster) Start(errchan chan error) error

Start 启动

func (*Cluster) Stop

func (n *Cluster) Stop(i interface{})

Stop 停止

func (*Cluster) UpdateNode

func (n *Cluster) UpdateNode(node *model.HostNode)

UpdateNode 更新节点信息

func (*Cluster) UpdateNodeCondition

func (n *Cluster) UpdateNodeCondition(nodeID, ctype, cvalue string)

UpdateNodeCondition 更新节点状态

Jump to

Keyboard shortcuts

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