Documentation ¶
Overview ¶
Package destroy provides a generic implementation of controller which cleans up tearing down resources without finalizers.
Index ¶
- type Controller
- func (ctrl *Controller[Input]) MapInput(context.Context, *zap.Logger, controller.QRuntime, resource.Pointer) ([]resource.Pointer, error)
- func (ctrl *Controller[Input]) Reconcile(ctx context.Context, logger *zap.Logger, r controller.QRuntime, ...) error
- func (ctrl *Controller[Input]) Settings() controller.QSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller[Input generic.ResourceWithRD] struct { generic.NamedController // contains filtered or unexported fields }
Controller provides a generic implementation of a QController which destroys tearing down resources without finalizers.
func NewController ¶
func NewController[Input generic.ResourceWithRD](concurrency optional.Optional[uint]) *Controller[Input]
NewController creates a new destroy Controller.
func (*Controller[Input]) MapInput ¶
func (ctrl *Controller[Input]) MapInput(context.Context, *zap.Logger, controller.QRuntime, resource.Pointer) ([]resource.Pointer, error)
MapInput implements controller.QController interface.
func (*Controller[Input]) Reconcile ¶
func (ctrl *Controller[Input]) Reconcile(ctx context.Context, logger *zap.Logger, r controller.QRuntime, ptr resource.Pointer) error
Reconcile implements controller.QController interface.
func (*Controller[Input]) Settings ¶
func (ctrl *Controller[Input]) Settings() controller.QSettings
Settings implements controller.QController interface.
Click to show internal directories.
Click to hide internal directories.