v1

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFailedObjectHandlerToHandler

func FromFailedObjectHandlerToHandler(sync FailedObjectHandler) generic.Handler

func FromNodeConfigHandlerToHandler

func FromNodeConfigHandlerToHandler(sync NodeConfigHandler) generic.Handler

func UpdateFailedObjectDeepCopyOnChange

func UpdateFailedObjectDeepCopyOnChange(client FailedObjectClient, obj *v1.FailedObject, handler func(obj *v1.FailedObject) (*v1.FailedObject, error)) (*v1.FailedObject, error)

func UpdateNodeConfigDeepCopyOnChange

func UpdateNodeConfigDeepCopyOnChange(client NodeConfigClient, obj *v1.NodeConfig, handler func(obj *v1.NodeConfig) (*v1.NodeConfig, error)) (*v1.NodeConfig, error)

Types

type FailedObjectCache

type FailedObjectCache interface {
	Get(name string) (*v1.FailedObject, error)
	List(selector labels.Selector) ([]*v1.FailedObject, error)

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

type FailedObjectClient

type FailedObjectClient interface {
	Create(*v1.FailedObject) (*v1.FailedObject, error)
	Update(*v1.FailedObject) (*v1.FailedObject, error)

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

type FailedObjectController

type FailedObjectController interface {
	generic.ControllerMeta
	FailedObjectClient

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

	Cache() FailedObjectCache
}

func NewFailedObjectController

func NewFailedObjectController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) FailedObjectController

type FailedObjectHandler

type FailedObjectHandler func(string, *v1.FailedObject) (*v1.FailedObject, error)

type FailedObjectIndexer

type FailedObjectIndexer func(obj *v1.FailedObject) ([]string, error)

type Interface

type Interface interface {
	FailedObject() FailedObjectController
	NodeConfig() NodeConfigController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type NodeConfigCache

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

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

type NodeConfigClient

type NodeConfigClient interface {
	Create(*v1.NodeConfig) (*v1.NodeConfig, error)
	Update(*v1.NodeConfig) (*v1.NodeConfig, error)

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

type NodeConfigController

type NodeConfigController interface {
	generic.ControllerMeta
	NodeConfigClient

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

	Cache() NodeConfigCache
}

func NewNodeConfigController

func NewNodeConfigController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) NodeConfigController

type NodeConfigHandler

type NodeConfigHandler func(string, *v1.NodeConfig) (*v1.NodeConfig, error)

type NodeConfigIndexer

type NodeConfigIndexer func(obj *v1.NodeConfig) ([]string, error)

Jump to

Keyboard shortcuts

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