Help us shape the future of Go! Take the 2026 Go Developer Survey

controller

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 11 Imported by: 1,370

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