Documentation ¶
Index ¶
- func FromBundleHandlerToHandler(sync BundleHandler) generic.Handler
- func RegisterBundleGeneratingHandler(ctx context.Context, controller BundleController, apply apply.Apply, ...)
- func RegisterBundleStatusHandler(ctx context.Context, controller BundleController, condition condition.Cond, ...)
- func UpdateBundleDeepCopyOnChange(client BundleClient, obj *v1alpha1.Bundle, ...) (*v1alpha1.Bundle, error)
- type BundleCache
- type BundleClient
- type BundleController
- type BundleGeneratingHandler
- type BundleHandler
- type BundleIndexer
- type BundleStatusHandler
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBundleHandlerToHandler ¶
func FromBundleHandlerToHandler(sync BundleHandler) generic.Handler
func RegisterBundleGeneratingHandler ¶
func RegisterBundleGeneratingHandler(ctx context.Context, controller BundleController, apply apply.Apply, condition condition.Cond, name string, handler BundleGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterBundleStatusHandler ¶
func RegisterBundleStatusHandler(ctx context.Context, controller BundleController, condition condition.Cond, name string, handler BundleStatusHandler)
Types ¶
type BundleCache ¶
type BundleClient ¶
type BundleClient interface { Create(*v1alpha1.Bundle) (*v1alpha1.Bundle, error) Update(*v1alpha1.Bundle) (*v1alpha1.Bundle, error) UpdateStatus(*v1alpha1.Bundle) (*v1alpha1.Bundle, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1alpha1.Bundle, error) List(namespace string, opts metav1.ListOptions) (*v1alpha1.BundleList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Bundle, err error) }
type BundleController ¶
type BundleController interface { generic.ControllerMeta BundleClient OnChange(ctx context.Context, name string, sync BundleHandler) OnRemove(ctx context.Context, name string, sync BundleHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() BundleCache }
func NewBundleController ¶
func NewBundleController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) BundleController
type BundleGeneratingHandler ¶
type BundleGeneratingHandler func(obj *v1alpha1.Bundle, status v1alpha1.BundleStatus) ([]runtime.Object, v1alpha1.BundleStatus, error)
type BundleStatusHandler ¶
type BundleStatusHandler func(obj *v1alpha1.Bundle, status v1alpha1.BundleStatus) (v1alpha1.BundleStatus, error)
type Interface ¶
type Interface interface {
Bundle() BundleController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
Click to show internal directories.
Click to hide internal directories.