Documentation ¶
Index ¶
- func FromVirtualMachineHandlerToHandler(sync VirtualMachineHandler) generic.Handler
- func FromVirtualMachineInstanceHandlerToHandler(sync VirtualMachineInstanceHandler) generic.Handler
- func FromVirtualMachineInstanceMigrationHandlerToHandler(sync VirtualMachineInstanceMigrationHandler) generic.Handler
- func RegisterVirtualMachineGeneratingHandler(ctx context.Context, controller VirtualMachineController, apply apply.Apply, ...)
- func RegisterVirtualMachineInstanceGeneratingHandler(ctx context.Context, controller VirtualMachineInstanceController, ...)
- func RegisterVirtualMachineInstanceMigrationGeneratingHandler(ctx context.Context, controller VirtualMachineInstanceMigrationController, ...)
- func RegisterVirtualMachineInstanceMigrationStatusHandler(ctx context.Context, controller VirtualMachineInstanceMigrationController, ...)
- func RegisterVirtualMachineInstanceStatusHandler(ctx context.Context, controller VirtualMachineInstanceController, ...)
- func RegisterVirtualMachineStatusHandler(ctx context.Context, controller VirtualMachineController, ...)
- func UpdateVirtualMachineDeepCopyOnChange(client VirtualMachineClient, obj *v1.VirtualMachine, ...) (*v1.VirtualMachine, error)
- func UpdateVirtualMachineInstanceDeepCopyOnChange(client VirtualMachineInstanceClient, obj *v1.VirtualMachineInstance, ...) (*v1.VirtualMachineInstance, error)
- func UpdateVirtualMachineInstanceMigrationDeepCopyOnChange(client VirtualMachineInstanceMigrationClient, ...) (*v1.VirtualMachineInstanceMigration, error)
- type Interface
- type VirtualMachineCache
- type VirtualMachineClient
- type VirtualMachineController
- type VirtualMachineGeneratingHandler
- type VirtualMachineHandler
- type VirtualMachineIndexer
- type VirtualMachineInstanceCache
- type VirtualMachineInstanceClient
- type VirtualMachineInstanceController
- type VirtualMachineInstanceGeneratingHandler
- type VirtualMachineInstanceHandler
- type VirtualMachineInstanceIndexer
- type VirtualMachineInstanceMigrationCache
- type VirtualMachineInstanceMigrationClient
- type VirtualMachineInstanceMigrationController
- type VirtualMachineInstanceMigrationGeneratingHandler
- type VirtualMachineInstanceMigrationHandler
- type VirtualMachineInstanceMigrationIndexer
- type VirtualMachineInstanceMigrationStatusHandler
- type VirtualMachineInstanceStatusHandler
- type VirtualMachineStatusHandler
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)
RegisterVirtualMachineGeneratingHandler configures a VirtualMachineController to execute a VirtualMachineGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
func RegisterVirtualMachineInstanceGeneratingHandler ¶
func RegisterVirtualMachineInstanceGeneratingHandler(ctx context.Context, controller VirtualMachineInstanceController, apply apply.Apply, condition condition.Cond, name string, handler VirtualMachineInstanceGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterVirtualMachineInstanceGeneratingHandler configures a VirtualMachineInstanceController to execute a VirtualMachineInstanceGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
func RegisterVirtualMachineInstanceMigrationGeneratingHandler ¶
func RegisterVirtualMachineInstanceMigrationGeneratingHandler(ctx context.Context, controller VirtualMachineInstanceMigrationController, apply apply.Apply, condition condition.Cond, name string, handler VirtualMachineInstanceMigrationGeneratingHandler, opts *generic.GeneratingHandlerOptions)
RegisterVirtualMachineInstanceMigrationGeneratingHandler configures a VirtualMachineInstanceMigrationController to execute a VirtualMachineInstanceMigrationGeneratingHandler for every events observed, passing the returned objects to the provided apply.Apply. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
func RegisterVirtualMachineInstanceMigrationStatusHandler ¶
func RegisterVirtualMachineInstanceMigrationStatusHandler(ctx context.Context, controller VirtualMachineInstanceMigrationController, condition condition.Cond, name string, handler VirtualMachineInstanceMigrationStatusHandler)
RegisterVirtualMachineInstanceMigrationStatusHandler configures a VirtualMachineInstanceMigrationController to execute a VirtualMachineInstanceMigrationStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
func RegisterVirtualMachineInstanceStatusHandler ¶
func RegisterVirtualMachineInstanceStatusHandler(ctx context.Context, controller VirtualMachineInstanceController, condition condition.Cond, name string, handler VirtualMachineInstanceStatusHandler)
RegisterVirtualMachineInstanceStatusHandler configures a VirtualMachineInstanceController to execute a VirtualMachineInstanceStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
func RegisterVirtualMachineStatusHandler ¶
func RegisterVirtualMachineStatusHandler(ctx context.Context, controller VirtualMachineController, condition condition.Cond, name string, handler VirtualMachineStatusHandler)
RegisterVirtualMachineStatusHandler configures a VirtualMachineController to execute a VirtualMachineStatusHandler for every events observed. If a non-empty condition is provided, it will be updated in the status conditions for every handler execution
func UpdateVirtualMachineDeepCopyOnChange ¶
func UpdateVirtualMachineDeepCopyOnChange(client VirtualMachineClient, obj *v1.VirtualMachine, handler func(obj *v1.VirtualMachine) (*v1.VirtualMachine, error)) (*v1.VirtualMachine, error)
func UpdateVirtualMachineInstanceDeepCopyOnChange ¶
func UpdateVirtualMachineInstanceDeepCopyOnChange(client VirtualMachineInstanceClient, obj *v1.VirtualMachineInstance, handler func(obj *v1.VirtualMachineInstance) (*v1.VirtualMachineInstance, error)) (*v1.VirtualMachineInstance, error)
func UpdateVirtualMachineInstanceMigrationDeepCopyOnChange ¶
func UpdateVirtualMachineInstanceMigrationDeepCopyOnChange(client VirtualMachineInstanceMigrationClient, obj *v1.VirtualMachineInstanceMigration, handler func(obj *v1.VirtualMachineInstanceMigration) (*v1.VirtualMachineInstanceMigration, error)) (*v1.VirtualMachineInstanceMigration, 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)
VirtualMachineGeneratingHandler is the top-level handler that is executed for every VirtualMachine event. It extends VirtualMachineStatusHandler by a returning a slice of child objects to be passed to apply.Apply
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 VirtualMachineInstanceGeneratingHandler ¶
type VirtualMachineInstanceGeneratingHandler func(obj *v1.VirtualMachineInstance, status v1.VirtualMachineInstanceStatus) ([]runtime.Object, v1.VirtualMachineInstanceStatus, error)
VirtualMachineInstanceGeneratingHandler is the top-level handler that is executed for every VirtualMachineInstance event. It extends VirtualMachineInstanceStatusHandler by a returning a slice of child objects to be passed to apply.Apply
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 VirtualMachineInstanceMigrationClient ¶
type VirtualMachineInstanceMigrationClient interface { Create(*v1.VirtualMachineInstanceMigration) (*v1.VirtualMachineInstanceMigration, error) Update(*v1.VirtualMachineInstanceMigration) (*v1.VirtualMachineInstanceMigration, error) UpdateStatus(*v1.VirtualMachineInstanceMigration) (*v1.VirtualMachineInstanceMigration, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.VirtualMachineInstanceMigration, error) List(namespace string, opts metav1.ListOptions) (*v1.VirtualMachineInstanceMigrationList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.VirtualMachineInstanceMigration, err 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 VirtualMachineInstanceMigrationGeneratingHandler ¶
type VirtualMachineInstanceMigrationGeneratingHandler func(obj *v1.VirtualMachineInstanceMigration, status v1.VirtualMachineInstanceMigrationStatus) ([]runtime.Object, v1.VirtualMachineInstanceMigrationStatus, error)
VirtualMachineInstanceMigrationGeneratingHandler is the top-level handler that is executed for every VirtualMachineInstanceMigration event. It extends VirtualMachineInstanceMigrationStatusHandler by a returning a slice of child objects to be passed to apply.Apply
type VirtualMachineInstanceMigrationHandler ¶
type VirtualMachineInstanceMigrationHandler func(string, *v1.VirtualMachineInstanceMigration) (*v1.VirtualMachineInstanceMigration, error)
type VirtualMachineInstanceMigrationIndexer ¶
type VirtualMachineInstanceMigrationIndexer func(obj *v1.VirtualMachineInstanceMigration) ([]string, error)
type VirtualMachineInstanceMigrationStatusHandler ¶
type VirtualMachineInstanceMigrationStatusHandler func(obj *v1.VirtualMachineInstanceMigration, status v1.VirtualMachineInstanceMigrationStatus) (v1.VirtualMachineInstanceMigrationStatus, error)
VirtualMachineInstanceMigrationStatusHandler is executed for every added or modified VirtualMachineInstanceMigration. Should return the new status to be updated
type VirtualMachineInstanceStatusHandler ¶
type VirtualMachineInstanceStatusHandler func(obj *v1.VirtualMachineInstance, status v1.VirtualMachineInstanceStatus) (v1.VirtualMachineInstanceStatus, error)
VirtualMachineInstanceStatusHandler is executed for every added or modified VirtualMachineInstance. Should return the new status to be updated
type VirtualMachineStatusHandler ¶
type VirtualMachineStatusHandler func(obj *v1.VirtualMachine, status v1.VirtualMachineStatus) (v1.VirtualMachineStatus, error)
VirtualMachineStatusHandler is executed for every added or modified VirtualMachine. Should return the new status to be updated