v1alpha1

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTrafficSplitHandlerToHandler

func FromTrafficSplitHandlerToHandler(sync TrafficSplitHandler) generic.Handler

func UpdateTrafficSplitDeepCopyOnChange

func UpdateTrafficSplitDeepCopyOnChange(client TrafficSplitClient, obj *v1alpha1.TrafficSplit, handler func(obj *v1alpha1.TrafficSplit) (*v1alpha1.TrafficSplit, error)) (*v1alpha1.TrafficSplit, error)

Types

type Interface

type Interface interface {
	TrafficSplit() TrafficSplitController
}

func New

func New(controllerManager *generic.ControllerManager, client clientset.SplitV1alpha1Interface,
	informers informers.Interface) Interface

type TrafficSplitCache

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

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

type TrafficSplitClient

type TrafficSplitClient interface {
	Create(*v1alpha1.TrafficSplit) (*v1alpha1.TrafficSplit, error)
	Update(*v1alpha1.TrafficSplit) (*v1alpha1.TrafficSplit, error)

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

type TrafficSplitController

type TrafficSplitController interface {
	generic.ControllerMeta
	TrafficSplitClient

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

	Cache() TrafficSplitCache
}

type TrafficSplitHandler

type TrafficSplitHandler func(string, *v1alpha1.TrafficSplit) (*v1alpha1.TrafficSplit, error)

type TrafficSplitIndexer

type TrafficSplitIndexer func(obj *v1alpha1.TrafficSplit) ([]string, error)

Jump to

Keyboard shortcuts

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