Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromDeploymentHandlerToHandler ¶
func FromDeploymentHandlerToHandler(sync DeploymentHandler) generic.Handler
Types ¶
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 {
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.