vnode_controller

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuntimeInfoStore

type RuntimeInfoStore struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

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) GetVNode

func (r *RuntimeInfoStore) GetVNode(nodeID string) *vnode.VNode

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) Reconcile

func (*VNodeController) SetupWithManager

func (brc *VNodeController) SetupWithManager(ctx context.Context, mgr manager.Manager) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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