Documentation ¶
Index ¶
- type VNode
- func (n *VNode) CheckAndUpdatePod(ctx context.Context, key string, obj interface{}, pod *corev1.Pod)
- func (n *VNode) CreateNodeLease(ctx context.Context, controllerID string) bool
- func (n *VNode) DeletePod(key string)
- func (n *VNode) DeletePodsFromKubernetesForget(ctx context.Context, key string)
- func (n *VNode) Done() <-chan struct{}
- func (n *VNode) Err() error
- func (n *VNode) ExitWhenLeaderChanged() <-chan struct{}
- func (n *VNode) InitContainerInfo(info model.ContainerStatusData)
- func (n *VNode) IsLeader() bool
- func (n *VNode) LoadPodFromController(key string) (any, bool)
- func (n *VNode) LockRetryLease()
- func (n *VNode) PodStore(key string, pod *corev1.Pod)
- func (n *VNode) RenewLease(ctx context.Context, clientID string)
- func (n *VNode) RetryLease()
- func (n *VNode) Run(ctx context.Context, initData model.NodeInfo)
- func (n *VNode) ShouldRetryLease() <-chan struct{}
- func (n *VNode) Shutdown()
- func (n *VNode) SyncAllContainerInfo(ctx context.Context, infos []model.ContainerStatusData)
- func (n *VNode) SyncNodeStatus(data model.NodeStatusData)
- func (n *VNode) SyncOneContainerInfo(ctx context.Context, info model.ContainerStatusData)
- func (n *VNode) SyncPodsFromKubernetesEnqueue(ctx context.Context, key string)
- func (n *VNode) WaitReady(ctx context.Context, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VNode ¶
func (*VNode) CheckAndUpdatePod ¶
func (*VNode) CreateNodeLease ¶ added in v0.3.0
func (*VNode) DeletePodsFromKubernetesForget ¶
func (*VNode) Done ¶
func (n *VNode) Done() <-chan struct{}
Done returns a channel that will be closed when the vnode has exited.
func (*VNode) ExitWhenLeaderChanged ¶ added in v0.3.0
func (n *VNode) ExitWhenLeaderChanged() <-chan struct{}
ExitWhenLeaderChanged returns a channel that will be closed when the vnode leader changed
func (*VNode) InitContainerInfo ¶ added in v0.2.2
func (n *VNode) InitContainerInfo(info model.ContainerStatusData)
func (*VNode) IsLeader ¶ added in v0.3.0
IsLeader returns a bool marked current vnode is leader or not
func (*VNode) LockRetryLease ¶ added in v0.3.0
func (n *VNode) LockRetryLease()
func (*VNode) RenewLease ¶ added in v0.3.0
func (*VNode) RetryLease ¶ added in v0.3.0
func (n *VNode) RetryLease()
func (*VNode) ShouldRetryLease ¶ added in v0.3.0
func (n *VNode) ShouldRetryLease() <-chan struct{}
func (*VNode) Shutdown ¶
func (n *VNode) Shutdown()
Shutdown is the func of shutting down a vnode when base exit
func (*VNode) SyncAllContainerInfo ¶
func (n *VNode) SyncAllContainerInfo(ctx context.Context, infos []model.ContainerStatusData)
func (*VNode) SyncNodeStatus ¶
func (n *VNode) SyncNodeStatus(data model.NodeStatusData)
func (*VNode) SyncOneContainerInfo ¶ added in v0.3.1
func (n *VNode) SyncOneContainerInfo(ctx context.Context, info model.ContainerStatusData)
func (*VNode) SyncPodsFromKubernetesEnqueue ¶
Click to show internal directories.
Click to hide internal directories.