nodem

package
v3.7.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: LGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNode

func CreateNode(nodeID, ip string) client.HostNode

CreateNode new node

Types

type NodeManager

type NodeManager struct {
	client.HostNode
	// contains filtered or unexported fields
}

NodeManager node manager

func NewNodeManager

func NewNodeManager(conf *option.Conf) (*NodeManager, error)

NewNodeManager new a node manager

func (*NodeManager) AddAPIManager

func (n *NodeManager) AddAPIManager(apim *api.Manager) error

AddAPIManager AddApiManager

func (*NodeManager) CheckNodeHealthy

func (n *NodeManager) CheckNodeHealthy() (bool, error)

checkNodeHealthy check current node healthy. only healthy can controller other service start

func (*NodeManager) GetCurrentNode

func (n *NodeManager) GetCurrentNode() *client.HostNode

GetCurrentNode get current node

func (*NodeManager) Start

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

Start start

func (*NodeManager) Stop

func (n *NodeManager) Stop()

Stop Stop

func (*NodeManager) SyncNodeStatus

func (m *NodeManager) SyncNodeStatus() error

func (*NodeManager) UpdateNodeStatus

func (n *NodeManager) UpdateNodeStatus() error

UpdateNodeStatus UpdateNodeStatus

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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