v1beta1

package
v0.5.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromClusterNetworkHandlerToHandler

func FromClusterNetworkHandlerToHandler(sync ClusterNetworkHandler) generic.Handler

func FromLinkMonitorHandlerToHandler added in v0.3.0

func FromLinkMonitorHandlerToHandler(sync LinkMonitorHandler) generic.Handler

func FromVlanConfigHandlerToHandler added in v0.3.0

func FromVlanConfigHandlerToHandler(sync VlanConfigHandler) generic.Handler

func FromVlanStatusHandlerToHandler added in v0.3.0

func FromVlanStatusHandlerToHandler(sync VlanStatusHandler) generic.Handler

func RegisterClusterNetworkGeneratingHandler added in v0.3.0

func RegisterClusterNetworkGeneratingHandler(ctx context.Context, controller ClusterNetworkController, apply apply.Apply,
	condition condition.Cond, name string, handler ClusterNetworkGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterClusterNetworkStatusHandler added in v0.3.0

func RegisterClusterNetworkStatusHandler(ctx context.Context, controller ClusterNetworkController, condition condition.Cond, name string, handler ClusterNetworkStatusHandler)

func RegisterLinkMonitorGeneratingHandler added in v0.3.0

func RegisterLinkMonitorGeneratingHandler(ctx context.Context, controller LinkMonitorController, apply apply.Apply,
	condition condition.Cond, name string, handler LinkMonitorGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterLinkMonitorStatusHandler added in v0.3.0

func RegisterLinkMonitorStatusHandler(ctx context.Context, controller LinkMonitorController, condition condition.Cond, name string, handler LinkMonitorStatusHandler)

func RegisterVlanStatusGeneratingHandler added in v0.3.0

func RegisterVlanStatusGeneratingHandler(ctx context.Context, controller VlanStatusController, apply apply.Apply,
	condition condition.Cond, name string, handler VlanStatusGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterVlanStatusStatusHandler added in v0.3.0

func RegisterVlanStatusStatusHandler(ctx context.Context, controller VlanStatusController, condition condition.Cond, name string, handler VlanStatusStatusHandler)

func UpdateClusterNetworkDeepCopyOnChange

func UpdateClusterNetworkDeepCopyOnChange(client ClusterNetworkClient, obj *v1beta1.ClusterNetwork, handler func(obj *v1beta1.ClusterNetwork) (*v1beta1.ClusterNetwork, error)) (*v1beta1.ClusterNetwork, error)

func UpdateLinkMonitorDeepCopyOnChange added in v0.3.0

func UpdateLinkMonitorDeepCopyOnChange(client LinkMonitorClient, obj *v1beta1.LinkMonitor, handler func(obj *v1beta1.LinkMonitor) (*v1beta1.LinkMonitor, error)) (*v1beta1.LinkMonitor, error)

func UpdateVlanConfigDeepCopyOnChange added in v0.3.0

func UpdateVlanConfigDeepCopyOnChange(client VlanConfigClient, obj *v1beta1.VlanConfig, handler func(obj *v1beta1.VlanConfig) (*v1beta1.VlanConfig, error)) (*v1beta1.VlanConfig, error)

func UpdateVlanStatusDeepCopyOnChange added in v0.3.0

func UpdateVlanStatusDeepCopyOnChange(client VlanStatusClient, obj *v1beta1.VlanStatus, handler func(obj *v1beta1.VlanStatus) (*v1beta1.VlanStatus, error)) (*v1beta1.VlanStatus, error)

Types

type ClusterNetworkCache

type ClusterNetworkCache interface {
	Get(name string) (*v1beta1.ClusterNetwork, error)
	List(selector labels.Selector) ([]*v1beta1.ClusterNetwork, error)

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

type ClusterNetworkClient

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

type ClusterNetworkController

type ClusterNetworkController interface {
	generic.ControllerMeta
	ClusterNetworkClient

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

	Cache() ClusterNetworkCache
}

func NewClusterNetworkController

func NewClusterNetworkController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) ClusterNetworkController

type ClusterNetworkGeneratingHandler added in v0.3.0

type ClusterNetworkGeneratingHandler func(obj *v1beta1.ClusterNetwork, status v1beta1.ClusterNetworkStatus) ([]runtime.Object, v1beta1.ClusterNetworkStatus, error)

type ClusterNetworkHandler

type ClusterNetworkHandler func(string, *v1beta1.ClusterNetwork) (*v1beta1.ClusterNetwork, error)

type ClusterNetworkIndexer

type ClusterNetworkIndexer func(obj *v1beta1.ClusterNetwork) ([]string, error)

type ClusterNetworkStatusHandler added in v0.3.0

type ClusterNetworkStatusHandler func(obj *v1beta1.ClusterNetwork, status v1beta1.ClusterNetworkStatus) (v1beta1.ClusterNetworkStatus, error)

type Interface

type Interface interface {
	ClusterNetwork() ClusterNetworkController
	LinkMonitor() LinkMonitorController
	VlanConfig() VlanConfigController
	VlanStatus() VlanStatusController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type LinkMonitorCache added in v0.3.0

type LinkMonitorCache interface {
	Get(name string) (*v1beta1.LinkMonitor, error)
	List(selector labels.Selector) ([]*v1beta1.LinkMonitor, error)

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

type LinkMonitorClient added in v0.3.0

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

type LinkMonitorController added in v0.3.0

type LinkMonitorController interface {
	generic.ControllerMeta
	LinkMonitorClient

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

	Cache() LinkMonitorCache
}

func NewLinkMonitorController added in v0.3.0

func NewLinkMonitorController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) LinkMonitorController

type LinkMonitorGeneratingHandler added in v0.3.0

type LinkMonitorGeneratingHandler func(obj *v1beta1.LinkMonitor, status v1beta1.LinkMonitorStatus) ([]runtime.Object, v1beta1.LinkMonitorStatus, error)

type LinkMonitorHandler added in v0.3.0

type LinkMonitorHandler func(string, *v1beta1.LinkMonitor) (*v1beta1.LinkMonitor, error)

type LinkMonitorIndexer added in v0.3.0

type LinkMonitorIndexer func(obj *v1beta1.LinkMonitor) ([]string, error)

type LinkMonitorStatusHandler added in v0.3.0

type LinkMonitorStatusHandler func(obj *v1beta1.LinkMonitor, status v1beta1.LinkMonitorStatus) (v1beta1.LinkMonitorStatus, error)

type VlanConfigCache added in v0.3.0

type VlanConfigCache interface {
	Get(name string) (*v1beta1.VlanConfig, error)
	List(selector labels.Selector) ([]*v1beta1.VlanConfig, error)

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

type VlanConfigClient added in v0.3.0

type VlanConfigClient interface {
	Create(*v1beta1.VlanConfig) (*v1beta1.VlanConfig, error)
	Update(*v1beta1.VlanConfig) (*v1beta1.VlanConfig, error)

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

type VlanConfigController added in v0.3.0

type VlanConfigController interface {
	generic.ControllerMeta
	VlanConfigClient

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

	Cache() VlanConfigCache
}

func NewVlanConfigController added in v0.3.0

func NewVlanConfigController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) VlanConfigController

type VlanConfigHandler added in v0.3.0

type VlanConfigHandler func(string, *v1beta1.VlanConfig) (*v1beta1.VlanConfig, error)

type VlanConfigIndexer added in v0.3.0

type VlanConfigIndexer func(obj *v1beta1.VlanConfig) ([]string, error)

type VlanStatusCache added in v0.3.0

type VlanStatusCache interface {
	Get(name string) (*v1beta1.VlanStatus, error)
	List(selector labels.Selector) ([]*v1beta1.VlanStatus, error)

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

type VlanStatusClient added in v0.3.0

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

type VlanStatusController added in v0.3.0

type VlanStatusController interface {
	generic.ControllerMeta
	VlanStatusClient

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

	Cache() VlanStatusCache
}

func NewVlanStatusController added in v0.3.0

func NewVlanStatusController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) VlanStatusController

type VlanStatusGeneratingHandler added in v0.3.0

type VlanStatusGeneratingHandler func(obj *v1beta1.VlanStatus, status v1beta1.VlStatus) ([]runtime.Object, v1beta1.VlStatus, error)

type VlanStatusHandler added in v0.3.0

type VlanStatusHandler func(string, *v1beta1.VlanStatus) (*v1beta1.VlanStatus, error)

type VlanStatusIndexer added in v0.3.0

type VlanStatusIndexer func(obj *v1beta1.VlanStatus) ([]string, error)

type VlanStatusStatusHandler added in v0.3.0

type VlanStatusStatusHandler func(obj *v1beta1.VlanStatus, status v1beta1.VlStatus) (v1beta1.VlStatus, error)

Jump to

Keyboard shortcuts

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