v1

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 20 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromVirtualMachineHandlerToHandler

func FromVirtualMachineHandlerToHandler(sync VirtualMachineHandler) generic.Handler

func FromVirtualMachineInstanceHandlerToHandler

func FromVirtualMachineInstanceHandlerToHandler(sync VirtualMachineInstanceHandler) generic.Handler

func FromVirtualMachineInstanceMigrationHandlerToHandler

func FromVirtualMachineInstanceMigrationHandlerToHandler(sync VirtualMachineInstanceMigrationHandler) generic.Handler

func RegisterVirtualMachineGeneratingHandler

func RegisterVirtualMachineGeneratingHandler(ctx context.Context, controller VirtualMachineController, apply apply.Apply,
	condition condition.Cond, name string, handler VirtualMachineGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterVirtualMachineInstanceMigrationStatusHandler

func RegisterVirtualMachineInstanceMigrationStatusHandler(ctx context.Context, controller VirtualMachineInstanceMigrationController, condition condition.Cond, name string, handler VirtualMachineInstanceMigrationStatusHandler)

func RegisterVirtualMachineInstanceStatusHandler

func RegisterVirtualMachineInstanceStatusHandler(ctx context.Context, controller VirtualMachineInstanceController, condition condition.Cond, name string, handler VirtualMachineInstanceStatusHandler)

func RegisterVirtualMachineStatusHandler

func RegisterVirtualMachineStatusHandler(ctx context.Context, controller VirtualMachineController, condition condition.Cond, name string, handler VirtualMachineStatusHandler)

func UpdateVirtualMachineDeepCopyOnChange

func UpdateVirtualMachineDeepCopyOnChange(client VirtualMachineClient, obj *v1.VirtualMachine, handler func(obj *v1.VirtualMachine) (*v1.VirtualMachine, error)) (*v1.VirtualMachine, error)

Types

type Interface

type Interface interface {
	VirtualMachine() VirtualMachineController
	VirtualMachineInstance() VirtualMachineInstanceController
	VirtualMachineInstanceMigration() VirtualMachineInstanceMigrationController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type VirtualMachineCache

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

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

type VirtualMachineClient

type VirtualMachineClient interface {
	Create(*v1.VirtualMachine) (*v1.VirtualMachine, error)
	Update(*v1.VirtualMachine) (*v1.VirtualMachine, error)
	UpdateStatus(*v1.VirtualMachine) (*v1.VirtualMachine, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	Get(namespace, name string, options metav1.GetOptions) (*v1.VirtualMachine, error)
	List(namespace string, opts metav1.ListOptions) (*v1.VirtualMachineList, error)
	Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
	Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.VirtualMachine, err error)
}

type VirtualMachineController

type VirtualMachineController interface {
	generic.ControllerMeta
	VirtualMachineClient

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

	Cache() VirtualMachineCache
}

func NewVirtualMachineController

func NewVirtualMachineController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) VirtualMachineController

type VirtualMachineGeneratingHandler

type VirtualMachineGeneratingHandler func(obj *v1.VirtualMachine, status v1.VirtualMachineStatus) ([]runtime.Object, v1.VirtualMachineStatus, error)

type VirtualMachineHandler

type VirtualMachineHandler func(string, *v1.VirtualMachine) (*v1.VirtualMachine, error)

type VirtualMachineIndexer

type VirtualMachineIndexer func(obj *v1.VirtualMachine) ([]string, error)

type VirtualMachineInstanceCache

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

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

type VirtualMachineInstanceClient

type VirtualMachineInstanceClient interface {
	Create(*v1.VirtualMachineInstance) (*v1.VirtualMachineInstance, error)
	Update(*v1.VirtualMachineInstance) (*v1.VirtualMachineInstance, error)
	UpdateStatus(*v1.VirtualMachineInstance) (*v1.VirtualMachineInstance, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	Get(namespace, name string, options metav1.GetOptions) (*v1.VirtualMachineInstance, error)
	List(namespace string, opts metav1.ListOptions) (*v1.VirtualMachineInstanceList, error)
	Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
	Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.VirtualMachineInstance, err error)
}

type VirtualMachineInstanceController

type VirtualMachineInstanceController interface {
	generic.ControllerMeta
	VirtualMachineInstanceClient

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

	Cache() VirtualMachineInstanceCache
}

func NewVirtualMachineInstanceController

func NewVirtualMachineInstanceController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) VirtualMachineInstanceController

type VirtualMachineInstanceHandler

type VirtualMachineInstanceHandler func(string, *v1.VirtualMachineInstance) (*v1.VirtualMachineInstance, error)

type VirtualMachineInstanceIndexer

type VirtualMachineInstanceIndexer func(obj *v1.VirtualMachineInstance) ([]string, error)

type VirtualMachineInstanceMigrationCache

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

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

type VirtualMachineInstanceMigrationController

type VirtualMachineInstanceMigrationController interface {
	generic.ControllerMeta
	VirtualMachineInstanceMigrationClient

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

	Cache() VirtualMachineInstanceMigrationCache
}

func NewVirtualMachineInstanceMigrationController

func NewVirtualMachineInstanceMigrationController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) VirtualMachineInstanceMigrationController

type VirtualMachineInstanceMigrationIndexer

type VirtualMachineInstanceMigrationIndexer func(obj *v1.VirtualMachineInstanceMigration) ([]string, error)

type VirtualMachineStatusHandler

type VirtualMachineStatusHandler func(obj *v1.VirtualMachine, status v1.VirtualMachineStatus) (v1.VirtualMachineStatus, error)

Jump to

Keyboard shortcuts

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