stackobject

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSkipObjectSet = errors.New("skip objectset")

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Apply     apply.Apply
	Populator Populator
	// contains filtered or unexported fields
}

func NewGeneratingController

func NewGeneratingController(ctx context.Context, rContext *types.Context, name string, controller ControllerWrapper, injectors ...string) *Controller

func (*Controller) OnChange

func (o *Controller) OnChange(key string, obj runtime.Object) (runtime.Object, error)

func (*Controller) OnRemove

func (o *Controller) OnRemove(key string, obj runtime.Object) (runtime.Object, error)

type ControllerWrapper

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

type Populator

type Populator func(obj runtime.Object, ns *corev1.Namespace, os *objectset.ObjectSet) error

Jump to

Keyboard shortcuts

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