Documentation ¶
Index ¶
- type Cluster
- func (n *Cluster) CacheNode(node *client.HostNode)
- func (n *Cluster) Collect(ch chan<- prometheus.Metric)
- func (n *Cluster) Describe(ch chan<- *prometheus.Desc)
- 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) RemoveNode(nodeID string)
- func (n *Cluster) Start(errchan chan error) error
- func (n *Cluster) Stop(i interface{})
- func (n *Cluster) UpdateNode(node *client.HostNode)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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) 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 ¶
GetAllNode get all node info from local cache
func (*Cluster) GetLabelsNode ¶
GetLabelsNode return node ids that matching labels
func (*Cluster) RemoveNode ¶
RemoveNode remove node from local cache
func (*Cluster) UpdateNode ¶
UpdateNode update node info
Click to show internal directories.
Click to hide internal directories.