Documentation ¶
Index ¶
- func FromCustomResourceDefinitionHandlerToHandler(sync CustomResourceDefinitionHandler) generic.Handler
- func RegisterCustomResourceDefinitionGeneratingHandler(ctx context.Context, controller CustomResourceDefinitionController, ...)
- func RegisterCustomResourceDefinitionStatusHandler(ctx context.Context, controller CustomResourceDefinitionController, ...)
- func UpdateCustomResourceDefinitionDeepCopyOnChange(client CustomResourceDefinitionClient, obj *v1beta1.CustomResourceDefinition, ...) (*v1beta1.CustomResourceDefinition, error)
- type CustomResourceDefinitionCache
- type CustomResourceDefinitionClient
- type CustomResourceDefinitionController
- type CustomResourceDefinitionGeneratingHandler
- type CustomResourceDefinitionHandler
- type CustomResourceDefinitionIndexer
- type CustomResourceDefinitionStatusHandler
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromCustomResourceDefinitionHandlerToHandler ¶
func FromCustomResourceDefinitionHandlerToHandler(sync CustomResourceDefinitionHandler) generic.Handler
func RegisterCustomResourceDefinitionGeneratingHandler ¶ added in v0.4.0
func RegisterCustomResourceDefinitionGeneratingHandler(ctx context.Context, controller CustomResourceDefinitionController, apply apply.Apply, condition condition.Cond, name string, handler CustomResourceDefinitionGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterCustomResourceDefinitionStatusHandler ¶ added in v0.4.0
func RegisterCustomResourceDefinitionStatusHandler(ctx context.Context, controller CustomResourceDefinitionController, condition condition.Cond, name string, handler CustomResourceDefinitionStatusHandler)
func UpdateCustomResourceDefinitionDeepCopyOnChange ¶ added in v0.4.0
func UpdateCustomResourceDefinitionDeepCopyOnChange(client CustomResourceDefinitionClient, obj *v1beta1.CustomResourceDefinition, handler func(obj *v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error)) (*v1beta1.CustomResourceDefinition, error)
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 { generic.ControllerMeta CustomResourceDefinitionClient OnChange(ctx context.Context, name string, sync CustomResourceDefinitionHandler) OnRemove(ctx context.Context, name string, sync CustomResourceDefinitionHandler) Enqueue(name string) EnqueueAfter(name string, duration time.Duration) Cache() CustomResourceDefinitionCache }
func NewCustomResourceDefinitionController ¶
func NewCustomResourceDefinitionController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.CustomResourceDefinitionsGetter, informer informers.CustomResourceDefinitionInformer) CustomResourceDefinitionController
type CustomResourceDefinitionGeneratingHandler ¶ added in v0.4.0
type CustomResourceDefinitionGeneratingHandler func(obj *v1beta1.CustomResourceDefinition, status v1beta1.CustomResourceDefinitionStatus) ([]runtime.Object, v1beta1.CustomResourceDefinitionStatus, error)
type CustomResourceDefinitionHandler ¶
type CustomResourceDefinitionHandler func(string, *v1beta1.CustomResourceDefinition) (*v1beta1.CustomResourceDefinition, error)
type CustomResourceDefinitionIndexer ¶
type CustomResourceDefinitionIndexer func(obj *v1beta1.CustomResourceDefinition) ([]string, error)
type CustomResourceDefinitionStatusHandler ¶ added in v0.4.0
type CustomResourceDefinitionStatusHandler func(obj *v1beta1.CustomResourceDefinition, status v1beta1.CustomResourceDefinitionStatus) (v1beta1.CustomResourceDefinitionStatus, 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.