controller

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ADD resource is added
	ADD operationType = "add"
	// DELETE resource is deleted
	DELETE operationType = "delete"
	// UPDATE resource is updated
	UPDATE operationType = "update"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	Run(int, <-chan struct{}) error
	// contains filtered or unexported methods
}

Factory interface for controller

func NewControllerFactory

func NewControllerFactory(id string, addFunc, deleteFunc, updateFunc func(string, string),
	resourceInformer informers.StreamInformer, resourceClientSet clientset.Interface) Factory

NewControllerFactory provides default controller instance

func NewControllerFactoryDefault

func NewControllerFactoryDefault(id string, addFunc, deleteFunc, updateFunc func(string, string), resourceInformer informers.StreamInformer, resourceClientSet clientset.Interface) Factory

NewControllerFactoryDefault default implmentation of controller instance

Jump to

Keyboard shortcuts

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