watch

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue added in v0.6.1

type ResourceWatcher

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

ResourceWatcher implements handler.EventHandler and is used to trigger reconciliation when a watched object changes. It's designed to only be used for a single type of object. If multiple types should be watched, one ResourceWatcher for each type should be used.

func New

func New() *ResourceWatcher

New will create a new ResourceWatcher with no watched objects.

func (ResourceWatcher) Create

func (w ResourceWatcher) Create(_ context.Context, event event.CreateEvent, queue Queue)

func (ResourceWatcher) Delete

func (w ResourceWatcher) Delete(_ context.Context, event event.DeleteEvent, queue Queue)

func (ResourceWatcher) Generic

func (w ResourceWatcher) Generic(_ context.Context, event event.GenericEvent, queue Queue)

func (ResourceWatcher) Read

func (ResourceWatcher) Update

func (w ResourceWatcher) Update(_ context.Context, event event.UpdateEvent, queue Queue)

func (ResourceWatcher) Watch

func (w ResourceWatcher) Watch(watchedName, dependentName types.NamespacedName)

Watch will add a new object to watch.

Jump to

Keyboard shortcuts

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