watch

package
v0.5.1-0...-0e033b4 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forever

func Forever(apiVersion, kind string, opts Opts) (<-chan watch.Event, error)

Forever will watch a resource forever, emitting `watch.Event` until it is killed.

Types

type Opts

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

Opts specifies which objects to watch for (e.g., "called this" or "owned by x").

func All

func All(namespace string) Opts

All configures a watch to look for all objects of a type in a namespace.

func ObjectsOwnedBy

func ObjectsOwnedBy(namespace, ownerName string) Opts

ObjectsOwnedBy specifies a watch should look for objects owned by `ownerName` in `namespace`.

func ThisObject

func ThisObject(namespace, name string) Opts

ThisObject configures a watch to look for an object specified by a name and a namespace.

func (*Opts) Check

func (opts *Opts) Check(o *unstructured.Unstructured) bool

Jump to

Keyboard shortcuts

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