watch

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(ctx context.Context, eventHandlers *EventHandlers) error

Types

type Adder

type Adder interface {
	Add(k8sObject runtime.Object) error
}

type Deleter

type Deleter interface {
	Delete(k8sObject runtime.Object) error
}

type EventHandlers

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

func NewEventHandlers

func NewEventHandlers(gvk schema.GroupVersionKind, adders []Adder, modifiers []Modifier, deleters []Deleter) *EventHandlers

type Modifier

type Modifier interface {
	Modify(k8sObject runtime.Object) error
}

Jump to

Keyboard shortcuts

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