Documentation ¶
Index ¶
- func FromLoadBalancerHandlerToHandler(sync LoadBalancerHandler) generic.Handler
- func RegisterLoadBalancerGeneratingHandler(ctx context.Context, controller LoadBalancerController, apply apply.Apply, ...)
- func RegisterLoadBalancerStatusHandler(ctx context.Context, controller LoadBalancerController, ...)
- func UpdateLoadBalancerDeepCopyOnChange(client LoadBalancerClient, obj *v1alpha1.LoadBalancer, ...) (*v1alpha1.LoadBalancer, error)
- type Interface
- type LoadBalancerCache
- type LoadBalancerClient
- type LoadBalancerController
- type LoadBalancerGeneratingHandler
- type LoadBalancerHandler
- type LoadBalancerIndexer
- type LoadBalancerStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromLoadBalancerHandlerToHandler ¶
func FromLoadBalancerHandlerToHandler(sync LoadBalancerHandler) generic.Handler
func RegisterLoadBalancerGeneratingHandler ¶
func RegisterLoadBalancerGeneratingHandler(ctx context.Context, controller LoadBalancerController, apply apply.Apply, condition condition.Cond, name string, handler LoadBalancerGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterLoadBalancerStatusHandler ¶
func RegisterLoadBalancerStatusHandler(ctx context.Context, controller LoadBalancerController, condition condition.Cond, name string, handler LoadBalancerStatusHandler)
func UpdateLoadBalancerDeepCopyOnChange ¶
func UpdateLoadBalancerDeepCopyOnChange(client LoadBalancerClient, obj *v1alpha1.LoadBalancer, handler func(obj *v1alpha1.LoadBalancer) (*v1alpha1.LoadBalancer, error)) (*v1alpha1.LoadBalancer, error)
Types ¶
type Interface ¶
type Interface interface {
LoadBalancer() LoadBalancerController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type LoadBalancerCache ¶
type LoadBalancerCache interface { Get(namespace, name string) (*v1alpha1.LoadBalancer, error) List(namespace string, selector labels.Selector) ([]*v1alpha1.LoadBalancer, error) AddIndexer(indexName string, indexer LoadBalancerIndexer) GetByIndex(indexName, key string) ([]*v1alpha1.LoadBalancer, error) }
type LoadBalancerClient ¶
type LoadBalancerClient interface { Create(*v1alpha1.LoadBalancer) (*v1alpha1.LoadBalancer, error) Update(*v1alpha1.LoadBalancer) (*v1alpha1.LoadBalancer, error) UpdateStatus(*v1alpha1.LoadBalancer) (*v1alpha1.LoadBalancer, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1alpha1.LoadBalancer, error) List(namespace string, opts metav1.ListOptions) (*v1alpha1.LoadBalancerList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.LoadBalancer, err error) }
type LoadBalancerController ¶
type LoadBalancerController interface { generic.ControllerMeta LoadBalancerClient OnChange(ctx context.Context, name string, sync LoadBalancerHandler) OnRemove(ctx context.Context, name string, sync LoadBalancerHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() LoadBalancerCache }
func NewLoadBalancerController ¶
func NewLoadBalancerController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) LoadBalancerController
type LoadBalancerGeneratingHandler ¶
type LoadBalancerGeneratingHandler func(obj *v1alpha1.LoadBalancer, status v1alpha1.LoadBalancerStatus) ([]runtime.Object, v1alpha1.LoadBalancerStatus, error)
type LoadBalancerHandler ¶
type LoadBalancerHandler func(string, *v1alpha1.LoadBalancer) (*v1alpha1.LoadBalancer, error)
type LoadBalancerIndexer ¶
type LoadBalancerIndexer func(obj *v1alpha1.LoadBalancer) ([]string, error)
type LoadBalancerStatusHandler ¶
type LoadBalancerStatusHandler func(obj *v1alpha1.LoadBalancer, status v1alpha1.LoadBalancerStatus) (v1alpha1.LoadBalancerStatus, error)
Click to show internal directories.
Click to hide internal directories.