watchers

package
v0.0.0-...-c44a825 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonSetWatcher

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

DaemonSetWatcher watches StorageOS related daemonsets.

func NewDaemonSetWatcher

func NewDaemonSetWatcher(client tappv1.DaemonSetInterface, name string) *DaemonSetWatcher

NewDaemonSetWatcher consructs a new daemonset watcher.

func (*DaemonSetWatcher) Setup

func (w *DaemonSetWatcher) Setup(ctx context.Context, fromNow bool, labelSelector string) error

setup configures daemonset watcher with init values.

func (*DaemonSetWatcher) Start

func (w *DaemonSetWatcher) Start(ctx context.Context, watchConsumer WatchConsumer) <-chan error

Start watching daemonsets.

type WatchConsumer

type WatchConsumer func(<-chan watch.Event) error

WatchConsumer consumes watch events.

Jump to

Keyboard shortcuts

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