Documentation
¶
Index ¶
- func FromEndpointSliceHandlerToHandler(sync EndpointSliceHandler) generic.Handler
- func UpdateEndpointSliceDeepCopyOnChange(client EndpointSliceClient, obj *v1.EndpointSlice, ...) (*v1.EndpointSlice, error)
- type EndpointSliceCache
- type EndpointSliceClient
- type EndpointSliceController
- type EndpointSliceHandler
- type EndpointSliceIndexer
- type Interface
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
Click to show internal directories.
Click to hide internal directories.