Documentation ¶
Index ¶
- func FromCustomResourceDefinitionHandlerToHandler(sync CustomResourceDefinitionHandler) generic.Handler
- type CustomResourceDefinitionCache
- type CustomResourceDefinitionClient
- type CustomResourceDefinitionController
- type CustomResourceDefinitionHandler
- type CustomResourceDefinitionIndexer
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromCustomResourceDefinitionHandlerToHandler ¶
func FromCustomResourceDefinitionHandlerToHandler(sync CustomResourceDefinitionHandler) generic.Handler
Types ¶
type CustomResourceDefinitionCache ¶
type CustomResourceDefinitionCache interface { Get(name string) (*v1beta1.CustomResourceDefinition, error) List(selector labels.Selector) ([]*v1beta1.CustomResourceDefinition, error) AddIndexer(indexName string, indexer CustomResourceDefinitionIndexer) GetByIndex(indexName, key string) ([]*v1beta1.CustomResourceDefinition, error) }
type CustomResourceDefinitionClient ¶
type CustomResourceDefinitionClient interface { Create(*v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error) Update(*v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error) UpdateStatus(*v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error) Delete(name string, options *metav1.DeleteOptions) error Get(name string, options metav1.GetOptions) (*v1beta1.CustomResourceDefinition, error) List(opts metav1.ListOptions) (*v1beta1.CustomResourceDefinitionList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.CustomResourceDefinition, err error) }
type CustomResourceDefinitionController ¶
type CustomResourceDefinitionController interface { CustomResourceDefinitionClient OnChange(ctx context.Context, name string, sync CustomResourceDefinitionHandler) OnRemove(ctx context.Context, name string, sync CustomResourceDefinitionHandler) Enqueue(name string) Cache() CustomResourceDefinitionCache 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 NewCustomResourceDefinitionController ¶
func NewCustomResourceDefinitionController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.CustomResourceDefinitionsGetter, informer informers.CustomResourceDefinitionInformer) CustomResourceDefinitionController
type CustomResourceDefinitionHandler ¶
type CustomResourceDefinitionHandler func(string, *v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error)
func UpdateCustomResourceDefinitionOnChange ¶
func UpdateCustomResourceDefinitionOnChange(updater generic.Updater, handler CustomResourceDefinitionHandler) CustomResourceDefinitionHandler
type CustomResourceDefinitionIndexer ¶
type CustomResourceDefinitionIndexer func(obj *v1beta1.CustomResourceDefinition) ([]string, error)
type Interface ¶
type Interface interface {
CustomResourceDefinition() CustomResourceDefinitionController
}
func New ¶
func New(controllerManager *generic.ControllerManager, client clientset.ApiextensionsV1beta1Interface, informers informers.Interface) Interface
Click to show internal directories.
Click to hide internal directories.