dynamicwatch

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 15 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(meta metav1.Object, object runtime.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(watchedMeta metav1.Object, watchedObject runtime.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