controller

package
Version: v0.0.0-...-afd06f5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 14 Imported by: 531

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjectInCluster

func ObjectInCluster(cluster string, obj interface{}) bool

Types

type ForgetError

type ForgetError struct {
	Err    error
	Reason string
}

func (*ForgetError) Error

func (f *ForgetError) Error() string

type GenericController

type GenericController interface {
	Informer() cache.SharedIndexInformer
	AddHandler(ctx context.Context, name string, handler HandlerFunc)
	Enqueue(namespace, name string)
	EnqueueAfter(namespace, name string, after time.Duration)
}

func NewGenericController

func NewGenericController(namespace, name string, controller controller.SharedController) GenericController

type HandlerFunc

type HandlerFunc func(key string, obj interface{}) (interface{}, error)

type ObjectClusterName

type ObjectClusterName interface {
	ObjClusterName() string
}

Jump to

Keyboard shortcuts

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