relatedresource

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 32

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)

func WatchClusterScoped added in v0.4.1

func WatchClusterScoped(ctx context.Context, name string, resolve Resolver, enq ClusterScopedEnqueuer, watching ...ControllerWrapper)

Types

type ClusterScopedEnqueuer added in v0.4.1

type ClusterScopedEnqueuer interface {
	Enqueue(name string)
}

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