Documentation
¶
Index ¶
- type Control
- type ControlStatus
- type Health
- type Node
- type Nodes
- func (nodes *Nodes) Add(node *Node)
- func (nodes *Nodes) AddOrUpdate(node *Node)
- func (nodes *Nodes) Find(node *Node) *Node
- func (nodes *Nodes) FindById(id uint64) *Node
- func (nodes *Nodes) GenerateID() uint64
- func (nodes *Nodes) NewNode(nodeName string, url string, API string) *Node
- func (nodes *Nodes) Remove(node *Node)
- func (nodes *Nodes) ToString() []string
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Control ¶ added in v0.1.35
type Control struct {
Starting ControlStatus
Upgrading ControlStatus
Draining ControlStatus
Recovering ControlStatus
}
type ControlStatus ¶ added in v0.1.56
type ControlStatus string
const ( StatusNotStarted ControlStatus = "not_started" StatusInProgress ControlStatus = "in_progress" StatusFailed ControlStatus = "failed" StatusSuccess ControlStatus = "success" )
type Node ¶
type Node struct {
NodeID uint64
NodeName string
API string
URL string
ConfChange raftpb.ConfChange `yaml:"-" json:"-"`
State State
Version *version.Version
}
func NewNodeDefinition ¶ added in v0.1.30
type Nodes ¶
type Nodes struct {
Nodes []*Node
}
func (*Nodes) AddOrUpdate ¶ added in v0.1.42
func (*Nodes) GenerateID ¶ added in v0.1.42
type State ¶ added in v0.1.35
func (*State) ModifyControl ¶ added in v0.1.56
func (s *State) ModifyControl(field string, status ControlStatus)
func (*State) ResetControl ¶ added in v0.1.56
func (s *State) ResetControl()
Click to show internal directories.
Click to hide internal directories.