v1

package
v0.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromVirtualServiceHandlerToHandler

func FromVirtualServiceHandlerToHandler(sync VirtualServiceHandler) generic.Handler

func UpdateVirtualServiceDeepCopyOnChange

func UpdateVirtualServiceDeepCopyOnChange(client VirtualServiceClient, obj *v1.VirtualService, handler func(obj *v1.VirtualService) (*v1.VirtualService, error)) (*v1.VirtualService, error)

Types

type Interface

type Interface interface {
	VirtualService() VirtualServiceController
}

func New

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

type VirtualServiceCache

type VirtualServiceCache interface {
	Get(namespace, name string) (*v1.VirtualService, error)
	List(namespace string, selector labels.Selector) ([]*v1.VirtualService, error)

	AddIndexer(indexName string, indexer VirtualServiceIndexer)
	GetByIndex(indexName, key string) ([]*v1.VirtualService, error)
}

type VirtualServiceClient

type VirtualServiceClient interface {
	Create(*v1.VirtualService) (*v1.VirtualService, error)
	Update(*v1.VirtualService) (*v1.VirtualService, error)

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

type VirtualServiceController

type VirtualServiceController interface {
	generic.ControllerMeta
	VirtualServiceClient

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

	Cache() VirtualServiceCache
}

type VirtualServiceHandler

type VirtualServiceHandler func(string, *v1.VirtualService) (*v1.VirtualService, error)

type VirtualServiceIndexer

type VirtualServiceIndexer func(obj *v1.VirtualService) ([]string, error)

Jump to

Keyboard shortcuts

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