v5.1.3-release+incompa... Latest Latest

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

Go to latest
Published: Apr 14, 2019 License: LGPL-3.0 Imports: 21 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


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) CacheNode

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

CacheNode 添加节点到缓存

func (*Cluster) CheckNodeInstall

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

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

func (*Cluster) Collect

func (n *Cluster) Collect(ch chan<- prometheus.Metric)

Collect prometheus collect

func (*Cluster) Describe

func (n *Cluster) Describe(ch chan<- *prometheus.Desc)

Describe prometheus describe

func (*Cluster) GetAllNode

func (n *Cluster) GetAllNode() (nodes []*client.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) *client.HostNode

GetNode get rainbond node info

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 *client.HostNode)

UpdateNode update node info

Jump to

Keyboard shortcuts

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