Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToOpts ¶
func ToOpts(c kube.Client, gvr schema.GroupVersionResource, filter Filter) kubetypes.InformerOptions
Types ¶
type Client ¶
type Client[T controllers.Object] interface { Reader[T] Writer[T] Informer[T] }
func NewFiltered ¶
func NewFiltered[T controllers.ComparableObject](c kube.Client, filter Filter) Client[T]
type Informer ¶
type Informer[T controllers.Object] interface { Reader[T] ListUnfiltered(namespace string, selector klabels.Selector) []T Start(stop <-chan struct{}) ShutdownHandlers() ShutdownHandler(registration cache.ResourceEventHandlerRegistration) HasSyncedIgnoringHandlers() bool AddEventHandler(h cache.ResourceEventHandler) cache.ResourceEventHandlerRegistration Index(name string, extract func(o T) []string) RawIndexer }
type RawIndexer ¶
type ReadWriter ¶
type ReadWriter[T controllers.Object] interface { Reader[T] Writer[T] }
type Untyped ¶
type Untyped = Informer[controllers.Object]
type Writer ¶
type Writer[T controllers.Object] interface { Create(object T) (T, error) Update(object T) (T, error) UpdateStatus(object T) (T, error) Patch(name, namespace string, pt apitypes.PatchType, data []byte) (T, error) PatchStatus(name, namespace string, pt apitypes.PatchType, data []byte) (T, error) ApplyStatus(name, namespace string, pt apitypes.PatchType, data []byte, fieldManager string) (T, error) Delete(name, namespace string) error }
Click to show internal directories.
Click to hide internal directories.