Documentation ¶
Index ¶
- func CreateNode(nodeID, ip string) client.HostNode
- type NodeManager
- func (n *NodeManager) AddAPIManager(apim *api.Manager) error
- func (n *NodeManager) CheckNodeHealthy() (bool, error)
- func (n *NodeManager) GetCurrentNode() *client.HostNode
- func (n *NodeManager) GetMonitorManager() monitor.Manager
- func (n *NodeManager) InitStart() error
- func (n *NodeManager) Start(errchan chan error) error
- func (n *NodeManager) StartService(serviceName string) error
- func (n *NodeManager) Stop()
- func (n *NodeManager) StopService(serviceName string) error
- func (n *NodeManager) UpdateConfig() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NodeManager ¶
type NodeManager struct {
// contains filtered or unexported fields
}
NodeManager
func NewNodeManager ¶
NewNodeManager
func (*NodeManager) AddAPIManager ¶
func (n *NodeManager) AddAPIManager(apim *api.Manager) error
AddAPIManager
func (*NodeManager) CheckNodeHealthy ¶
func (n *NodeManager) CheckNodeHealthy() (bool, error)
CheckNodeHealthy check current node is healthy. only healthy can control other service start
func (*NodeManager) GetCurrentNode ¶
func (n *NodeManager) GetCurrentNode() *client.HostNode
GetCurrentNode
func (*NodeManager) GetMonitorManager ¶
func (n *NodeManager) GetMonitorManager() monitor.Manager
GetMonitorManager
func (*NodeManager) InitStart ¶
func (n *NodeManager) InitStart() error
InitStart - init start is first start module. it would not depend on etcd
func (*NodeManager) StartService ¶
func (n *NodeManager) StartService(serviceName string) error
StartService
func (*NodeManager) StopService ¶
func (n *NodeManager) StopService(serviceName string) error
StopService
Click to show internal directories.
Click to hide internal directories.