rainbond: github.com/goodrain/rainbond/node/nodem Index | Files | Directories

package nodem

import "github.com/goodrain/rainbond/node/nodem"

Index

Package Files

node_manager.go

func CreateNode Uses

func CreateNode(nodeID, ip string) client.HostNode

CreateNode new node

type NodeManager Uses

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

NodeManager node manager

func NewNodeManager Uses

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

NewNodeManager new a node manager

func (*NodeManager) AddAPIManager Uses

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

AddAPIManager AddApiManager

func (*NodeManager) CheckNodeHealthy Uses

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

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

func (*NodeManager) GetCurrentNode Uses

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

GetCurrentNode get current node

func (*NodeManager) GetMonitorManager Uses

func (n *NodeManager) GetMonitorManager() monitor.Manager

GetMonitorManager get monitor manager

func (*NodeManager) InitStart Uses

func (n *NodeManager) InitStart() error

InitStart init start is first start module. it would not depend etcd

func (*NodeManager) Start Uses

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

Start start

func (*NodeManager) StartService Uses

func (n *NodeManager) StartService(serviceName string) error

StartService start a define service

func (*NodeManager) Stop Uses

func (n *NodeManager) Stop()

Stop Stop

func (*NodeManager) StopService Uses

func (n *NodeManager) StopService(serviceName string) error

StopService stop a define service

func (*NodeManager) UpdateConfig Uses

func (n *NodeManager) UpdateConfig() error

UpdateConfig update service config

Directories

PathSynopsis
client
controller
envoy
envoy/conver
healthy
healthy/probe
info
logger
logger/streamlog
logger/testlog
monitor
service

Package nodem imports 17 packages (graph) and is imported by 1 packages. Updated 2019-07-11. Refresh now. Tools for package owners.