relatedresource

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Watch

func Watch(ctx context.Context, name string, resolve Resolver, enq Enqueuer, watching ...ControllerWrapper)

Types

type ControllerWrapper

type ControllerWrapper interface {
	Informer() cache.SharedIndexInformer
	AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
}

type Enqueuer

type Enqueuer interface {
	Enqueue(namespace, name string)
}

type Key

type Key struct {
	Namespace string
	Name      string
}

func NewKey

func NewKey(namespace, name string) Key

type Resolver

type Resolver func(namespace, name string, obj runtime.Object) ([]Key, error)

Jump to

Keyboard shortcuts

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