dynamicwatcher

package
v0.0.0-...-78ffc1b Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicWatcher

type DynamicWatcher struct {
	// contains filtered or unexported fields
}

func New

func New(
	log logr.Logger,
	scheme *runtime.Scheme,
	restMapper meta.RESTMapper,
	client dynamic.Interface,
) *DynamicWatcher

func (*DynamicWatcher) Free

func (dw *DynamicWatcher) Free(owner client.Object) error

Free all watches associated with the given owner.

func (*DynamicWatcher) OwnersForNamespacedGKV

func (dw *DynamicWatcher) OwnersForNamespacedGKV(ngvk namespacedGKV) []OwnerRef

func (*DynamicWatcher) Start

Starts this event source.

func (*DynamicWatcher) Watch

func (dw *DynamicWatcher) Watch(owner client.Object, obj runtime.Object) error

Watch the given object type and associate the watch with the given owner.

type EnqueueWatchingObjects

type EnqueueWatchingObjects struct {
	WatcherRefGetter ownerRefGetter
	// WatcherType is the type of the Owner object to look for in OwnerReferences.  Only Group and Kind are compared.
	WatcherType   runtime.Object
	ClusterScoped bool
	// contains filtered or unexported fields
}

func (*EnqueueWatchingObjects) Create

func (*EnqueueWatchingObjects) Delete

func (*EnqueueWatchingObjects) Generic

func (*EnqueueWatchingObjects) InjectScheme

func (e *EnqueueWatchingObjects) InjectScheme(s *runtime.Scheme) error

InjectScheme is called by the Controller to provide a singleton scheme to the EnqueueRequestForOwner.

func (*EnqueueWatchingObjects) Update

type OwnerRef

type OwnerRef struct {
	UID       types.UID
	Group     string
	Kind      string
	Name      string
	Namespace string
}

Jump to

Keyboard shortcuts

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