dynamicwatch

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WatchedByAnnotation = "cassandra.datastax.com/watched-by"
	WatchedLabel        = "cassandra.datastax.com/watched"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicWatches

type DynamicWatches interface {
	UpdateWatch(watcher types.NamespacedName, watched []types.NamespacedName) error
	RemoveWatcher(watcher types.NamespacedName) error
	FindWatchers(obj client.Object) []types.NamespacedName
}

func NewDynamicSecretWatches

func NewDynamicSecretWatches(client client.Client) DynamicWatches

type DynamicWatchesAnnotationImpl

type DynamicWatchesAnnotationImpl struct {
	Client          runtimeClient.Client
	Ctx             context.Context
	WatchedType     metav1.TypeMeta
	WatchedListType metav1.TypeMeta
	Logger          logr.Logger
}

func (*DynamicWatchesAnnotationImpl) FindWatchers

func (impl *DynamicWatchesAnnotationImpl) FindWatchers(watchedObject client.Object) []types.NamespacedName

func (*DynamicWatchesAnnotationImpl) RemoveWatcher

func (impl *DynamicWatchesAnnotationImpl) RemoveWatcher(watcher types.NamespacedName) error

func (*DynamicWatchesAnnotationImpl) UpdateWatch

func (impl *DynamicWatchesAnnotationImpl) UpdateWatch(watcher types.NamespacedName, watched []types.NamespacedName) error

Jump to

Keyboard shortcuts

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