...

Package dynamicinformer

import "k8s.io/client-go/dynamic/dynamicinformer"
Overview
Index

Overview ▾

func NewFilteredDynamicInformer

func NewFilteredDynamicInformer(client dynamic.Interface, gvr schema.GroupVersionResource, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions TweakListOptionsFunc) informers.GenericInformer

NewFilteredDynamicInformer constructs a new informer for a dynamic type.

type DynamicSharedInformerFactory

DynamicSharedInformerFactory provides access to a shared informer and lister for dynamic client

type DynamicSharedInformerFactory interface {
    // Start initializes all requested informers. They are handled in goroutines
    // which run until the stop channel gets closed.
    Start(stopCh <-chan struct{})

    // ForResource gives generic access to a shared informer of the matching type.
    ForResource(gvr schema.GroupVersionResource) informers.GenericInformer

    // WaitForCacheSync blocks until all started informers' caches were synced
    // or the stop channel gets closed.
    WaitForCacheSync(stopCh <-chan struct{}) map[schema.GroupVersionResource]bool

    // Shutdown marks a factory as shutting down. At that point no new
    // informers can be started anymore and Start will return without
    // doing anything.
    //
    // In addition, Shutdown blocks until all goroutines have terminated. For that
    // to happen, the close channel(s) that they were started with must be closed,
    // either before Shutdown gets called or while it is waiting.
    //
    // Shutdown may be called multiple times, even concurrently. All such calls will
    // block until all goroutines have terminated.
    Shutdown()
}

func NewDynamicSharedInformerFactory

func NewDynamicSharedInformerFactory(client dynamic.Interface, defaultResync time.Duration) DynamicSharedInformerFactory

NewDynamicSharedInformerFactory constructs a new instance of dynamicSharedInformerFactory for all namespaces.

func NewFilteredDynamicSharedInformerFactory

func NewFilteredDynamicSharedInformerFactory(client dynamic.Interface, defaultResync time.Duration, namespace string, tweakListOptions TweakListOptionsFunc) DynamicSharedInformerFactory

NewFilteredDynamicSharedInformerFactory constructs a new instance of dynamicSharedInformerFactory. Listers obtained via this factory will be subject to the same filters as specified here.

type TweakListOptionsFunc

TweakListOptionsFunc defines the signature of a helper function that wants to provide more listing options to API

type TweakListOptionsFunc func(*metav1.ListOptions)