v1beta1

package
v0.4.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromNodeHandlerToHandler

func FromNodeHandlerToHandler(sync NodeHandler) generic.Handler

func UpdateNodeDeepCopyOnChange

func UpdateNodeDeepCopyOnChange(client NodeClient, obj *v1beta1.Node, handler func(obj *v1beta1.Node) (*v1beta1.Node, error)) (*v1beta1.Node, error)

Types

type Interface

type Interface interface {
	Node() NodeController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type NodeCache

type NodeCache interface {
	Get(namespace, name string) (*v1beta1.Node, error)
	List(namespace string, selector labels.Selector) ([]*v1beta1.Node, error)

	AddIndexer(indexName string, indexer NodeIndexer)
	GetByIndex(indexName, key string) ([]*v1beta1.Node, error)
}

type NodeClient

type NodeClient interface {
	Create(*v1beta1.Node) (*v1beta1.Node, error)
	Update(*v1beta1.Node) (*v1beta1.Node, error)

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

type NodeController

type NodeController interface {
	generic.ControllerMeta
	NodeClient

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

	Cache() NodeCache
}

func NewNodeController

func NewNodeController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) NodeController

type NodeHandler

type NodeHandler func(string, *v1beta1.Node) (*v1beta1.Node, error)

type NodeIndexer

type NodeIndexer func(obj *v1beta1.Node) ([]string, error)

Jump to

Keyboard shortcuts

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