helper

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForceSyncFromInformer

func ForceSyncFromInformer(stopCh <-chan struct{}, cacheSyncer CacheSyncer, informer cache.SharedInformer, handler cache.ResourceEventHandler, options ...Option)

ForceSyncFromInformer ensures that the EventHandler will synchronize data immediately after registration, helping those plugins that need to build memory status through EventHandler to correctly synchronize data

func NewForceSyncSharedInformerFactory added in v1.4.0

func NewForceSyncSharedInformerFactory(factory informers.SharedInformerFactory) informers.SharedInformerFactory

Types

type CacheSyncer

type CacheSyncer interface {
	Start(stopCh <-chan struct{})
	WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool
}

type Option added in v1.4.0

type Option func(*forceSyncEventHandler)

func WithResyncPeriod added in v1.4.0

func WithResyncPeriod(resyncPeriod time.Duration) Option

Jump to

Keyboard shortcuts

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