Documentation ¶
Index ¶
- func FromDaemonSetHandlerToHandler(sync DaemonSetHandler) generic.Handler
- func FromDeploymentHandlerToHandler(sync DeploymentHandler) generic.Handler
- type DaemonSetCache
- type DaemonSetClient
- type DaemonSetController
- type DaemonSetHandler
- type DaemonSetIndexer
- type DeploymentCache
- type DeploymentClient
- type DeploymentController
- type DeploymentHandler
- type DeploymentIndexer
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromDaemonSetHandlerToHandler ¶ added in v0.1.1
func FromDaemonSetHandlerToHandler(sync DaemonSetHandler) generic.Handler
func FromDeploymentHandlerToHandler ¶
func FromDeploymentHandlerToHandler(sync DeploymentHandler) generic.Handler
Types ¶
type DaemonSetCache ¶ added in v0.1.1
type DaemonSetClient ¶ added in v0.1.1
type DaemonSetClient interface { Create(*v1.DaemonSet) (*v1.DaemonSet, error) Update(*v1.DaemonSet) (*v1.DaemonSet, error) UpdateStatus(*v1.DaemonSet) (*v1.DaemonSet, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.DaemonSet, error) List(namespace string, opts metav1.ListOptions) (*v1.DaemonSetList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.DaemonSet, err error) }
type DaemonSetController ¶ added in v0.1.1
type DaemonSetController interface { DaemonSetClient OnChange(ctx context.Context, name string, sync DaemonSetHandler) OnRemove(ctx context.Context, name string, sync DaemonSetHandler) Enqueue(namespace, name string) Cache() DaemonSetCache 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 NewDaemonSetController ¶ added in v0.1.1
func NewDaemonSetController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.DaemonSetsGetter, informer informers.DaemonSetInformer) DaemonSetController
type DaemonSetHandler ¶ added in v0.1.1
func UpdateDaemonSetOnChange ¶ added in v0.1.1
func UpdateDaemonSetOnChange(updater generic.Updater, handler DaemonSetHandler) DaemonSetHandler
type DaemonSetIndexer ¶ added in v0.1.1
type DeploymentCache ¶
type DeploymentCache interface { Get(namespace, name string) (*v1.Deployment, error) List(namespace string, selector labels.Selector) ([]*v1.Deployment, error) AddIndexer(indexName string, indexer DeploymentIndexer) GetByIndex(indexName, key string) ([]*v1.Deployment, error) }
type DeploymentClient ¶
type DeploymentClient interface { Create(*v1.Deployment) (*v1.Deployment, error) Update(*v1.Deployment) (*v1.Deployment, error) UpdateStatus(*v1.Deployment) (*v1.Deployment, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.Deployment, error) List(namespace string, opts metav1.ListOptions) (*v1.DeploymentList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Deployment, err error) }
type DeploymentController ¶
type DeploymentController interface { DeploymentClient OnChange(ctx context.Context, name string, sync DeploymentHandler) OnRemove(ctx context.Context, name string, sync DeploymentHandler) Enqueue(namespace, name string) Cache() DeploymentCache 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 NewDeploymentController ¶
func NewDeploymentController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.DeploymentsGetter, informer informers.DeploymentInformer) DeploymentController
type DeploymentHandler ¶
type DeploymentHandler func(string, *v1.Deployment) (*v1.Deployment, error)
func UpdateDeploymentOnChange ¶
func UpdateDeploymentOnChange(updater generic.Updater, handler DeploymentHandler) DeploymentHandler
type DeploymentIndexer ¶
type DeploymentIndexer func(obj *v1.Deployment) ([]string, error)
type Interface ¶
type Interface interface { DaemonSet() DaemonSetController Deployment() DeploymentController }
func New ¶
func New(controllerManager *generic.ControllerManager, client clientset.AppsV1Interface, informers informers.Interface) Interface
Click to show internal directories.
Click to hide internal directories.