MCPcopy
hub / github.com/kubernetes/client-go / NewSharedInformer

Function NewSharedInformer

tools/cache/shared_informer.go:127–129  ·  view source on GitHub ↗

NewSharedInformer creates a new instance for the listwatcher.

(lw ListerWatcher, objType runtime.Object, resyncPeriod time.Duration)

Source from the content-addressed store, hash-verified

125
126// NewSharedInformer creates a new instance for the listwatcher.
127func NewSharedInformer(lw ListerWatcher, objType runtime.Object, resyncPeriod time.Duration) SharedInformer {
128 return NewSharedIndexInformer(lw, objType, resyncPeriod, Indexers{})
129}
130
131// NewSharedIndexInformer creates a new instance for the listwatcher.
132func NewSharedIndexInformer(lw ListerWatcher, objType runtime.Object, defaultEventHandlerResyncPeriod time.Duration, indexers Indexers) SharedIndexInformer {

Callers 4

TestResyncCheckPeriodFunction · 0.85
TestMutationDetectorFunction · 0.85

Calls 1

NewSharedIndexInformerFunction · 0.85

Tested by 4

TestResyncCheckPeriodFunction · 0.68
TestMutationDetectorFunction · 0.68