v1

package
v1.3.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromControllerRevisionHandlerToHandler

func FromControllerRevisionHandlerToHandler(sync ControllerRevisionHandler) generic.Handler

func UpdateControllerRevisionDeepCopyOnChange

func UpdateControllerRevisionDeepCopyOnChange(client ControllerRevisionClient, obj *v1.ControllerRevision, handler func(obj *v1.ControllerRevision) (*v1.ControllerRevision, error)) (*v1.ControllerRevision, error)

Types

type ControllerRevisionCache

type ControllerRevisionCache interface {
	Get(namespace, name string) (*v1.ControllerRevision, error)
	List(namespace string, selector labels.Selector) ([]*v1.ControllerRevision, error)

	AddIndexer(indexName string, indexer ControllerRevisionIndexer)
	GetByIndex(indexName, key string) ([]*v1.ControllerRevision, error)
}

type ControllerRevisionClient

type ControllerRevisionClient interface {
	Create(*v1.ControllerRevision) (*v1.ControllerRevision, error)
	Update(*v1.ControllerRevision) (*v1.ControllerRevision, error)

	Delete(namespace, name string, options *metav1.DeleteOptions) error
	Get(namespace, name string, options metav1.GetOptions) (*v1.ControllerRevision, error)
	List(namespace string, opts metav1.ListOptions) (*v1.ControllerRevisionList, error)
	Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
	Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ControllerRevision, err error)
}

type ControllerRevisionController

type ControllerRevisionController interface {
	generic.ControllerMeta
	ControllerRevisionClient

	OnChange(ctx context.Context, name string, sync ControllerRevisionHandler)
	OnRemove(ctx context.Context, name string, sync ControllerRevisionHandler)
	Enqueue(namespace, name string)
	EnqueueAfter(namespace, name string, duration time.Duration)

	Cache() ControllerRevisionCache
}

func NewControllerRevisionController

func NewControllerRevisionController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) ControllerRevisionController

type ControllerRevisionHandler

type ControllerRevisionHandler func(string, *v1.ControllerRevision) (*v1.ControllerRevision, error)

type ControllerRevisionIndexer

type ControllerRevisionIndexer func(obj *v1.ControllerRevision) ([]string, error)

type Interface

type Interface interface {
	ControllerRevision() ControllerRevisionController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

Jump to

Keyboard shortcuts

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