v1

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromNetworkAttachmentDefinitionHandlerToHandler

func FromNetworkAttachmentDefinitionHandlerToHandler(sync NetworkAttachmentDefinitionHandler) generic.Handler

Types

type Interface

type Interface interface {
	NetworkAttachmentDefinition() NetworkAttachmentDefinitionController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type NetworkAttachmentDefinitionCache

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

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

type NetworkAttachmentDefinitionClient

type NetworkAttachmentDefinitionClient interface {
	Create(*v1.NetworkAttachmentDefinition) (*v1.NetworkAttachmentDefinition, error)
	Update(*v1.NetworkAttachmentDefinition) (*v1.NetworkAttachmentDefinition, error)

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

type NetworkAttachmentDefinitionController

type NetworkAttachmentDefinitionController interface {
	generic.ControllerMeta
	NetworkAttachmentDefinitionClient

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

	Cache() NetworkAttachmentDefinitionCache
}

func NewNetworkAttachmentDefinitionController

func NewNetworkAttachmentDefinitionController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) NetworkAttachmentDefinitionController

type NetworkAttachmentDefinitionIndexer

type NetworkAttachmentDefinitionIndexer func(obj *v1.NetworkAttachmentDefinition) ([]string, error)

Jump to

Keyboard shortcuts

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