Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler func(ctx context.Context, object client.Object, cl lot_client.Client, scheme *runtime.Scheme) error
Handler is a function type which performs specific logic within a reconcile.Reconciler reconcile Func.
type HandlerFuncs ¶
HandlerFuncs is a struct which contains the only two types of supported handlers
type Reconciler ¶
type Reconciler interface { reconcile.Reconciler }
Reconciler is nests the reconciler.Reconciler interface of the controller-runtime library. It is used in order to hide the underlaying library within the operator package
func WithClient ¶
func WithClient(cl lot_client.Client, obj client.Object, scheme *runtime.Scheme, fn *HandlerFuncs) Reconciler
WithClient is a function that returns a Reconciler with an opinionated reconcile method which can pass to the event handler functions not only its context but also a client.Client and the runtime.Scheme of the Operator's manager.Manager
Click to show internal directories.
Click to hide internal directories.