v1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromIPPoolHandlerToHandler

func FromIPPoolHandlerToHandler(sync IPPoolHandler) generic.Handler

func FromVirtualMachineNetworkConfigHandlerToHandler

func FromVirtualMachineNetworkConfigHandlerToHandler(sync VirtualMachineNetworkConfigHandler) generic.Handler

func RegisterIPPoolGeneratingHandler

func RegisterIPPoolGeneratingHandler(ctx context.Context, controller IPPoolController, apply apply.Apply,
	condition condition.Cond, name string, handler IPPoolGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterIPPoolStatusHandler

func RegisterIPPoolStatusHandler(ctx context.Context, controller IPPoolController, condition condition.Cond, name string, handler IPPoolStatusHandler)

func RegisterVirtualMachineNetworkConfigStatusHandler

func RegisterVirtualMachineNetworkConfigStatusHandler(ctx context.Context, controller VirtualMachineNetworkConfigController, condition condition.Cond, name string, handler VirtualMachineNetworkConfigStatusHandler)

func UpdateIPPoolDeepCopyOnChange

func UpdateIPPoolDeepCopyOnChange(client IPPoolClient, obj *v1alpha1.IPPool, handler func(obj *v1alpha1.IPPool) (*v1alpha1.IPPool, error)) (*v1alpha1.IPPool, error)

Types

type IPPoolCache

type IPPoolCache interface {
	Get(namespace, name string) (*v1alpha1.IPPool, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha1.IPPool, error)

	AddIndexer(indexName string, indexer IPPoolIndexer)
	GetByIndex(indexName, key string) ([]*v1alpha1.IPPool, error)
}

type IPPoolClient

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

type IPPoolController

type IPPoolController interface {
	generic.ControllerMeta
	IPPoolClient

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

	Cache() IPPoolCache
}

func NewIPPoolController

func NewIPPoolController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) IPPoolController

type IPPoolGeneratingHandler

type IPPoolGeneratingHandler func(obj *v1alpha1.IPPool, status v1alpha1.IPPoolStatus) ([]runtime.Object, v1alpha1.IPPoolStatus, error)

type IPPoolHandler

type IPPoolHandler func(string, *v1alpha1.IPPool) (*v1alpha1.IPPool, error)

type IPPoolIndexer

type IPPoolIndexer func(obj *v1alpha1.IPPool) ([]string, error)

type IPPoolStatusHandler

type IPPoolStatusHandler func(obj *v1alpha1.IPPool, status v1alpha1.IPPoolStatus) (v1alpha1.IPPoolStatus, error)

type Interface

type Interface interface {
	IPPool() IPPoolController
	VirtualMachineNetworkConfig() VirtualMachineNetworkConfigController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type VirtualMachineNetworkConfigCache

type VirtualMachineNetworkConfigCache interface {
	Get(namespace, name string) (*v1alpha1.VirtualMachineNetworkConfig, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha1.VirtualMachineNetworkConfig, error)

	AddIndexer(indexName string, indexer VirtualMachineNetworkConfigIndexer)
	GetByIndex(indexName, key string) ([]*v1alpha1.VirtualMachineNetworkConfig, error)
}

type VirtualMachineNetworkConfigController

type VirtualMachineNetworkConfigController interface {
	generic.ControllerMeta
	VirtualMachineNetworkConfigClient

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

	Cache() VirtualMachineNetworkConfigCache
}

func NewVirtualMachineNetworkConfigController

func NewVirtualMachineNetworkConfigController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) VirtualMachineNetworkConfigController

type VirtualMachineNetworkConfigIndexer

type VirtualMachineNetworkConfigIndexer func(obj *v1alpha1.VirtualMachineNetworkConfig) ([]string, error)

Jump to

Keyboard shortcuts

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