Documentation ¶
Index ¶
- func FromAddonHandlerToHandler(sync AddonHandler) generic.Handler
- func FromListenerConfigHandlerToHandler(sync ListenerConfigHandler) generic.Handler
- type AddonCache
- type AddonClient
- type AddonController
- type AddonHandler
- type AddonIndexer
- type Interface
- type ListenerConfigCache
- type ListenerConfigClient
- type ListenerConfigController
- type ListenerConfigHandler
- type ListenerConfigIndexer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromAddonHandlerToHandler ¶
func FromAddonHandlerToHandler(sync AddonHandler) generic.Handler
func FromListenerConfigHandlerToHandler ¶
func FromListenerConfigHandlerToHandler(sync ListenerConfigHandler) generic.Handler
Types ¶
type AddonCache ¶
type AddonClient ¶
type AddonClient interface { Create(*v1.Addon) (*v1.Addon, error) Update(*v1.Addon) (*v1.Addon, error) UpdateStatus(*v1.Addon) (*v1.Addon, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.Addon, error) List(namespace string, opts metav1.ListOptions) (*v1.AddonList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Addon, err error) }
type AddonController ¶
type AddonController interface { AddonClient OnChange(ctx context.Context, name string, sync AddonHandler) OnRemove(ctx context.Context, name string, sync AddonHandler) Enqueue(namespace, name string) Cache() AddonCache Informer() cache.SharedIndexInformer GroupVersionKind() schema.GroupVersionKind AddGenericHandler(ctx context.Context, name string, handler generic.Handler) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler) Updater() generic.Updater }
func NewAddonController ¶
func NewAddonController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.AddonsGetter, informer informers.AddonInformer) AddonController
type AddonHandler ¶
func UpdateAddonOnChange ¶
func UpdateAddonOnChange(updater generic.Updater, handler AddonHandler) AddonHandler
type Interface ¶
type Interface interface { Addon() AddonController ListenerConfig() ListenerConfigController }
func New ¶
func New(controllerManager *generic.ControllerManager, client clientset.K3sV1Interface, informers informers.Interface) Interface
type ListenerConfigCache ¶
type ListenerConfigCache interface { Get(namespace, name string) (*v1.ListenerConfig, error) List(namespace string, selector labels.Selector) ([]*v1.ListenerConfig, error) AddIndexer(indexName string, indexer ListenerConfigIndexer) GetByIndex(indexName, key string) ([]*v1.ListenerConfig, error) }
type ListenerConfigClient ¶
type ListenerConfigClient interface { Create(*v1.ListenerConfig) (*v1.ListenerConfig, error) Update(*v1.ListenerConfig) (*v1.ListenerConfig, error) UpdateStatus(*v1.ListenerConfig) (*v1.ListenerConfig, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.ListenerConfig, error) List(namespace string, opts metav1.ListOptions) (*v1.ListenerConfigList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.ListenerConfig, err error) }
type ListenerConfigController ¶
type ListenerConfigController interface { ListenerConfigClient OnChange(ctx context.Context, name string, sync ListenerConfigHandler) OnRemove(ctx context.Context, name string, sync ListenerConfigHandler) Enqueue(namespace, name string) Cache() ListenerConfigCache Informer() cache.SharedIndexInformer GroupVersionKind() schema.GroupVersionKind AddGenericHandler(ctx context.Context, name string, handler generic.Handler) AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler) Updater() generic.Updater }
func NewListenerConfigController ¶
func NewListenerConfigController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.ListenerConfigsGetter, informer informers.ListenerConfigInformer) ListenerConfigController
type ListenerConfigHandler ¶
type ListenerConfigHandler func(string, *v1.ListenerConfig) (*v1.ListenerConfig, error)
func UpdateListenerConfigOnChange ¶
func UpdateListenerConfigOnChange(updater generic.Updater, handler ListenerConfigHandler) ListenerConfigHandler
type ListenerConfigIndexer ¶
type ListenerConfigIndexer func(obj *v1.ListenerConfig) ([]string, error)
Click to show internal directories.
Click to hide internal directories.