Documentation ¶
Index ¶
- type RuntimeInfoStore
- func (r *RuntimeInfoStore) AllNodeNum() int
- func (r *RuntimeInfoStore) DeleteNode(nodeName string)
- func (r *RuntimeInfoStore) DeleteVNode(nodeID string)
- func (r *RuntimeInfoStore) GetLeaseOutdatedVNodeName(leaseDuration time.Duration) []string
- func (r *RuntimeInfoStore) GetNotReachableNodeInfos(maxUnreachableDuration time.Duration) []model.UnreachableNodeInfo
- func (r *RuntimeInfoStore) GetVNode(nodeID string) *vnode.VNode
- func (r *RuntimeInfoStore) GetVNodeByNodeName(nodeName string) *vnode.VNode
- func (r *RuntimeInfoStore) GetVNodes() []*vnode.VNode
- func (r *RuntimeInfoStore) NodeMsgArrived(nodeID string)
- func (r *RuntimeInfoStore) NodeRunning(nodeID string)
- func (r *RuntimeInfoStore) NodeShutdown(nodeID string)
- func (r *RuntimeInfoStore) PutNode(nodeName string)
- func (r *RuntimeInfoStore) PutVNode(nodeID string, vnode *vnode.VNode)
- func (r *RuntimeInfoStore) PutVNodeIDNX(nodeID string) error
- func (r *RuntimeInfoStore) PutVNodeLeaseLatestUpdateTime(nodeName string, renewTime time.Time)
- func (r *RuntimeInfoStore) RunningNodeNum() int
- type VNodeController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuntimeInfoStore ¶
RuntimeInfoStore provide the in memory runtime information.
func NewRuntimeInfoStore ¶
func NewRuntimeInfoStore() *RuntimeInfoStore
func (*RuntimeInfoStore) AllNodeNum ¶ added in v0.3.0
func (r *RuntimeInfoStore) AllNodeNum() int
func (*RuntimeInfoStore) DeleteNode ¶ added in v0.3.0
func (r *RuntimeInfoStore) DeleteNode(nodeName string)
func (*RuntimeInfoStore) DeleteVNode ¶
func (r *RuntimeInfoStore) DeleteVNode(nodeID string)
func (*RuntimeInfoStore) GetLeaseOutdatedVNodeName ¶ added in v0.3.0
func (r *RuntimeInfoStore) GetLeaseOutdatedVNodeName(leaseDuration time.Duration) []string
func (*RuntimeInfoStore) GetNotReachableNodeInfos ¶ added in v0.3.0
func (r *RuntimeInfoStore) GetNotReachableNodeInfos(maxUnreachableDuration time.Duration) []model.UnreachableNodeInfo
func (*RuntimeInfoStore) GetVNodeByNodeName ¶
func (r *RuntimeInfoStore) GetVNodeByNodeName(nodeName string) *vnode.VNode
func (*RuntimeInfoStore) GetVNodes ¶
func (r *RuntimeInfoStore) GetVNodes() []*vnode.VNode
func (*RuntimeInfoStore) NodeMsgArrived ¶
func (r *RuntimeInfoStore) NodeMsgArrived(nodeID string)
func (*RuntimeInfoStore) NodeRunning ¶ added in v0.3.0
func (r *RuntimeInfoStore) NodeRunning(nodeID string)
func (*RuntimeInfoStore) NodeShutdown ¶ added in v0.3.0
func (r *RuntimeInfoStore) NodeShutdown(nodeID string)
func (*RuntimeInfoStore) PutNode ¶ added in v0.3.0
func (r *RuntimeInfoStore) PutNode(nodeName string)
func (*RuntimeInfoStore) PutVNode ¶
func (r *RuntimeInfoStore) PutVNode(nodeID string, vnode *vnode.VNode)
func (*RuntimeInfoStore) PutVNodeIDNX ¶
func (r *RuntimeInfoStore) PutVNodeIDNX(nodeID string) error
func (*RuntimeInfoStore) PutVNodeLeaseLatestUpdateTime ¶ added in v0.3.0
func (r *RuntimeInfoStore) PutVNodeLeaseLatestUpdateTime(nodeName string, renewTime time.Time)
func (*RuntimeInfoStore) RunningNodeNum ¶ added in v0.3.0
func (r *RuntimeInfoStore) RunningNodeNum() int
type VNodeController ¶
type VNodeController struct {
// contains filtered or unexported fields
}
func NewVNodeController ¶
func NewVNodeController(config *model.BuildVNodeControllerConfig, tunnels []tunnel.Tunnel) (*VNodeController, error)
func (*VNodeController) SetupWithManager ¶
Click to show internal directories.
Click to hide internal directories.