v1

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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromEndpointSliceHandlerToHandler

func FromEndpointSliceHandlerToHandler(sync EndpointSliceHandler) generic.Handler

func UpdateEndpointSliceDeepCopyOnChange

func UpdateEndpointSliceDeepCopyOnChange(client EndpointSliceClient, obj *v1.EndpointSlice, handler func(obj *v1.EndpointSlice) (*v1.EndpointSlice, error)) (*v1.EndpointSlice, error)

Types

type EndpointSliceCache

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

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

type EndpointSliceClient

type EndpointSliceClient interface {
	Create(*v1.EndpointSlice) (*v1.EndpointSlice, error)
	Update(*v1.EndpointSlice) (*v1.EndpointSlice, error)

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

type EndpointSliceController

type EndpointSliceController interface {
	generic.ControllerMeta
	EndpointSliceClient

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

	Cache() EndpointSliceCache
}

func NewEndpointSliceController

func NewEndpointSliceController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) EndpointSliceController

type EndpointSliceHandler

type EndpointSliceHandler func(string, *v1.EndpointSlice) (*v1.EndpointSlice, error)

type EndpointSliceIndexer

type EndpointSliceIndexer func(obj *v1.EndpointSlice) ([]string, error)

type Interface

type Interface interface {
	EndpointSlice() EndpointSliceController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

Jump to

Keyboard shortcuts

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