Documentation ¶
Overview ¶
Definitions for the Kubernetes Controllers
Definitions for the multicluster Kubernetes Controllers ¶
Definitions for the Kubernetes Controllers
Index ¶
- type ClusterResourceDeletionReconciler
- type ClusterResourceEventHandler
- type ClusterResourceEventHandlerFuncs
- func (f *ClusterResourceEventHandlerFuncs) CreateClusterResource(obj *things_test_io_v1.ClusterResource) error
- func (f *ClusterResourceEventHandlerFuncs) DeleteClusterResource(obj *things_test_io_v1.ClusterResource) error
- func (f *ClusterResourceEventHandlerFuncs) GenericClusterResource(obj *things_test_io_v1.ClusterResource) error
- func (f *ClusterResourceEventHandlerFuncs) UpdateClusterResource(objOld, objNew *things_test_io_v1.ClusterResource) error
- type ClusterResourceEventWatcher
- type ClusterResourceFinalizer
- type ClusterResourceReconcileLoop
- type ClusterResourceReconciler
- type ClusterResourceReconcilerFuncs
- type MulticlusterClusterResourceDeletionReconciler
- type MulticlusterClusterResourceReconcileLoop
- type MulticlusterClusterResourceReconciler
- type MulticlusterClusterResourceReconcilerFuncs
- type MulticlusterPaintDeletionReconciler
- type MulticlusterPaintReconcileLoop
- type MulticlusterPaintReconciler
- type MulticlusterPaintReconcilerFuncs
- type PaintDeletionReconciler
- type PaintEventHandler
- type PaintEventHandlerFuncs
- func (f *PaintEventHandlerFuncs) CreatePaint(obj *things_test_io_v1.Paint) error
- func (f *PaintEventHandlerFuncs) DeletePaint(obj *things_test_io_v1.Paint) error
- func (f *PaintEventHandlerFuncs) GenericPaint(obj *things_test_io_v1.Paint) error
- func (f *PaintEventHandlerFuncs) UpdatePaint(objOld, objNew *things_test_io_v1.Paint) error
- type PaintEventWatcher
- type PaintFinalizer
- type PaintReconcileLoop
- type PaintReconciler
- type PaintReconcilerFuncs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterResourceDeletionReconciler ¶
type ClusterResourceDeletionReconciler interface {
ReconcileClusterResourceDeletion(req reconcile.Request) error
}
Reconcile deletion events for the ClusterResource Resource. Deletion receives a reconcile.Request as we cannot guarantee the last state of the object before being deleted. implemented by the user
type ClusterResourceEventHandler ¶
type ClusterResourceEventHandler interface { CreateClusterResource(obj *things_test_io_v1.ClusterResource) error UpdateClusterResource(old, new *things_test_io_v1.ClusterResource) error DeleteClusterResource(obj *things_test_io_v1.ClusterResource) error GenericClusterResource(obj *things_test_io_v1.ClusterResource) error }
Handle events for the ClusterResource Resource DEPRECATED: Prefer reconciler pattern.
type ClusterResourceEventHandlerFuncs ¶
type ClusterResourceEventHandlerFuncs struct { OnCreate func(obj *things_test_io_v1.ClusterResource) error OnUpdate func(old, new *things_test_io_v1.ClusterResource) error OnDelete func(obj *things_test_io_v1.ClusterResource) error OnGeneric func(obj *things_test_io_v1.ClusterResource) error }
func (*ClusterResourceEventHandlerFuncs) CreateClusterResource ¶
func (f *ClusterResourceEventHandlerFuncs) CreateClusterResource(obj *things_test_io_v1.ClusterResource) error
func (*ClusterResourceEventHandlerFuncs) DeleteClusterResource ¶
func (f *ClusterResourceEventHandlerFuncs) DeleteClusterResource(obj *things_test_io_v1.ClusterResource) error
func (*ClusterResourceEventHandlerFuncs) GenericClusterResource ¶
func (f *ClusterResourceEventHandlerFuncs) GenericClusterResource(obj *things_test_io_v1.ClusterResource) error
func (*ClusterResourceEventHandlerFuncs) UpdateClusterResource ¶
func (f *ClusterResourceEventHandlerFuncs) UpdateClusterResource(objOld, objNew *things_test_io_v1.ClusterResource) error
type ClusterResourceEventWatcher ¶
type ClusterResourceEventWatcher interface {
AddEventHandler(ctx context.Context, h ClusterResourceEventHandler, predicates ...predicate.Predicate) error
}
func NewClusterResourceEventWatcher ¶
func NewClusterResourceEventWatcher(name string, mgr manager.Manager) ClusterResourceEventWatcher
type ClusterResourceFinalizer ¶
type ClusterResourceFinalizer interface { ClusterResourceReconciler // name of the finalizer used by this handler. // finalizer names should be unique for a single task ClusterResourceFinalizerName() string // finalize the object before it is deleted. // Watchers created with a finalizing handler will a FinalizeClusterResource(obj *things_test_io_v1.ClusterResource) error }
Reconcile and finalize the ClusterResource Resource implemented by the user
type ClusterResourceReconcileLoop ¶
type ClusterResourceReconcileLoop interface {
RunClusterResourceReconciler(ctx context.Context, rec ClusterResourceReconciler, predicates ...predicate.Predicate) error
}
type ClusterResourceReconciler ¶
type ClusterResourceReconciler interface {
ReconcileClusterResource(obj *things_test_io_v1.ClusterResource) (reconcile.Result, error)
}
Reconcile Upsert events for the ClusterResource Resource. implemented by the user
type ClusterResourceReconcilerFuncs ¶
type ClusterResourceReconcilerFuncs struct { OnReconcileClusterResource func(obj *things_test_io_v1.ClusterResource) (reconcile.Result, error) OnReconcileClusterResourceDeletion func(req reconcile.Request) error }
func (*ClusterResourceReconcilerFuncs) ReconcileClusterResource ¶
func (f *ClusterResourceReconcilerFuncs) ReconcileClusterResource(obj *things_test_io_v1.ClusterResource) (reconcile.Result, error)
func (*ClusterResourceReconcilerFuncs) ReconcileClusterResourceDeletion ¶
func (f *ClusterResourceReconcilerFuncs) ReconcileClusterResourceDeletion(req reconcile.Request) error
type MulticlusterClusterResourceDeletionReconciler ¶
type MulticlusterClusterResourceDeletionReconciler interface {
ReconcileClusterResourceDeletion(clusterName string, req reconcile.Request) error
}
Reconcile deletion events for the ClusterResource Resource across clusters. Deletion receives a reconcile.Request as we cannot guarantee the last state of the object before being deleted. implemented by the user
type MulticlusterClusterResourceReconcileLoop ¶
type MulticlusterClusterResourceReconcileLoop interface { // AddMulticlusterClusterResourceReconciler adds a MulticlusterClusterResourceReconciler to the MulticlusterClusterResourceReconcileLoop. AddMulticlusterClusterResourceReconciler(ctx context.Context, rec MulticlusterClusterResourceReconciler, predicates ...predicate.Predicate) }
func NewMulticlusterClusterResourceReconcileLoop ¶
func NewMulticlusterClusterResourceReconcileLoop(name string, cw multicluster.ClusterWatcher, options reconcile.Options) MulticlusterClusterResourceReconcileLoop
type MulticlusterClusterResourceReconciler ¶
type MulticlusterClusterResourceReconciler interface {
ReconcileClusterResource(clusterName string, obj *things_test_io_v1.ClusterResource) (reconcile.Result, error)
}
Reconcile Upsert events for the ClusterResource Resource across clusters. implemented by the user
type MulticlusterClusterResourceReconcilerFuncs ¶
type MulticlusterClusterResourceReconcilerFuncs struct { OnReconcileClusterResource func(clusterName string, obj *things_test_io_v1.ClusterResource) (reconcile.Result, error) OnReconcileClusterResourceDeletion func(clusterName string, req reconcile.Request) error }
func (*MulticlusterClusterResourceReconcilerFuncs) ReconcileClusterResource ¶
func (f *MulticlusterClusterResourceReconcilerFuncs) ReconcileClusterResource(clusterName string, obj *things_test_io_v1.ClusterResource) (reconcile.Result, error)
func (*MulticlusterClusterResourceReconcilerFuncs) ReconcileClusterResourceDeletion ¶
func (f *MulticlusterClusterResourceReconcilerFuncs) ReconcileClusterResourceDeletion(clusterName string, req reconcile.Request) error
type MulticlusterPaintDeletionReconciler ¶
type MulticlusterPaintDeletionReconciler interface {
ReconcilePaintDeletion(clusterName string, req reconcile.Request) error
}
Reconcile deletion events for the Paint Resource across clusters. Deletion receives a reconcile.Request as we cannot guarantee the last state of the object before being deleted. implemented by the user
type MulticlusterPaintReconcileLoop ¶
type MulticlusterPaintReconcileLoop interface { // AddMulticlusterPaintReconciler adds a MulticlusterPaintReconciler to the MulticlusterPaintReconcileLoop. AddMulticlusterPaintReconciler(ctx context.Context, rec MulticlusterPaintReconciler, predicates ...predicate.Predicate) }
func NewMulticlusterPaintReconcileLoop ¶
func NewMulticlusterPaintReconcileLoop(name string, cw multicluster.ClusterWatcher, options reconcile.Options) MulticlusterPaintReconcileLoop
type MulticlusterPaintReconciler ¶
type MulticlusterPaintReconciler interface {
ReconcilePaint(clusterName string, obj *things_test_io_v1.Paint) (reconcile.Result, error)
}
Reconcile Upsert events for the Paint Resource across clusters. implemented by the user
type MulticlusterPaintReconcilerFuncs ¶
type MulticlusterPaintReconcilerFuncs struct { OnReconcilePaint func(clusterName string, obj *things_test_io_v1.Paint) (reconcile.Result, error) OnReconcilePaintDeletion func(clusterName string, req reconcile.Request) error }
func (*MulticlusterPaintReconcilerFuncs) ReconcilePaint ¶
func (f *MulticlusterPaintReconcilerFuncs) ReconcilePaint(clusterName string, obj *things_test_io_v1.Paint) (reconcile.Result, error)
func (*MulticlusterPaintReconcilerFuncs) ReconcilePaintDeletion ¶
func (f *MulticlusterPaintReconcilerFuncs) ReconcilePaintDeletion(clusterName string, req reconcile.Request) error
type PaintDeletionReconciler ¶
Reconcile deletion events for the Paint Resource. Deletion receives a reconcile.Request as we cannot guarantee the last state of the object before being deleted. implemented by the user
type PaintEventHandler ¶
type PaintEventHandler interface { CreatePaint(obj *things_test_io_v1.Paint) error UpdatePaint(old, new *things_test_io_v1.Paint) error DeletePaint(obj *things_test_io_v1.Paint) error GenericPaint(obj *things_test_io_v1.Paint) error }
Handle events for the Paint Resource DEPRECATED: Prefer reconciler pattern.
type PaintEventHandlerFuncs ¶
type PaintEventHandlerFuncs struct { OnCreate func(obj *things_test_io_v1.Paint) error OnUpdate func(old, new *things_test_io_v1.Paint) error OnDelete func(obj *things_test_io_v1.Paint) error OnGeneric func(obj *things_test_io_v1.Paint) error }
func (*PaintEventHandlerFuncs) CreatePaint ¶
func (f *PaintEventHandlerFuncs) CreatePaint(obj *things_test_io_v1.Paint) error
func (*PaintEventHandlerFuncs) DeletePaint ¶
func (f *PaintEventHandlerFuncs) DeletePaint(obj *things_test_io_v1.Paint) error
func (*PaintEventHandlerFuncs) GenericPaint ¶
func (f *PaintEventHandlerFuncs) GenericPaint(obj *things_test_io_v1.Paint) error
func (*PaintEventHandlerFuncs) UpdatePaint ¶
func (f *PaintEventHandlerFuncs) UpdatePaint(objOld, objNew *things_test_io_v1.Paint) error
type PaintEventWatcher ¶
type PaintEventWatcher interface {
AddEventHandler(ctx context.Context, h PaintEventHandler, predicates ...predicate.Predicate) error
}
func NewPaintEventWatcher ¶
func NewPaintEventWatcher(name string, mgr manager.Manager) PaintEventWatcher
type PaintFinalizer ¶
type PaintFinalizer interface { PaintReconciler // name of the finalizer used by this handler. // finalizer names should be unique for a single task PaintFinalizerName() string // finalize the object before it is deleted. // Watchers created with a finalizing handler will a FinalizePaint(obj *things_test_io_v1.Paint) error }
Reconcile and finalize the Paint Resource implemented by the user
type PaintReconcileLoop ¶
type PaintReconcileLoop interface {
RunPaintReconciler(ctx context.Context, rec PaintReconciler, predicates ...predicate.Predicate) error
}
func NewPaintReconcileLoop ¶
type PaintReconciler ¶
type PaintReconciler interface {
ReconcilePaint(obj *things_test_io_v1.Paint) (reconcile.Result, error)
}
Reconcile Upsert events for the Paint Resource. implemented by the user
type PaintReconcilerFuncs ¶
type PaintReconcilerFuncs struct { OnReconcilePaint func(obj *things_test_io_v1.Paint) (reconcile.Result, error) OnReconcilePaintDeletion func(req reconcile.Request) error }
func (*PaintReconcilerFuncs) ReconcilePaint ¶
func (f *PaintReconcilerFuncs) ReconcilePaint(obj *things_test_io_v1.Paint) (reconcile.Result, error)
func (*PaintReconcilerFuncs) ReconcilePaintDeletion ¶
func (f *PaintReconcilerFuncs) ReconcilePaintDeletion(req reconcile.Request) error