watcher

package
v0.0.0-...-f843765 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(clientSet kubernetes.Interface, resyncPeriod time.Duration) informers.SharedInformerFactory

Types

type Error

type Error struct {
	Resource schema.GroupVersionResource
	Error    error
}

type EventHandler

type EventHandler interface {
	HandleAdd(obj interface{}) error
	HandleDelete(obj interface{}) error
	HandleUpdate(oldObj interface{}, newObj interface{}) error
}

type ResourceWatcher

type ResourceWatcher struct {
	Handler EventHandler
}

func (*ResourceWatcher) NewDefaultGroupVersionResources

func (rw *ResourceWatcher) NewDefaultGroupVersionResources() []schema.GroupVersionResource

func (*ResourceWatcher) NewEventHandlerFuncs

func (rw *ResourceWatcher) NewEventHandlerFuncs() *cache.ResourceEventHandlerFuncs

func (*ResourceWatcher) Watch

Directories

Path Synopsis
Package watcher is a generated GoMock package.
Package watcher is a generated GoMock package.

Jump to

Keyboard shortcuts

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