v1alpha1

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Mar 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 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 LoadBalancerHandler

type LoadBalancerHandler func(string, *v1alpha1.LoadBalancer) (*v1alpha1.LoadBalancer, error)

type LoadBalancerIndexer

type LoadBalancerIndexer func(obj *v1alpha1.LoadBalancer) ([]string, error)

Jump to

Keyboard shortcuts

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