Documentation ¶
Index ¶
- func NewMockReconciler(reconciler controller.Reconciler, metaMock any) controller.Reconciler
- type MockReconciler
- func (h MockReconciler) Configure(ctx context.Context, req ctrl.Request, resource client.Object) (meta any, err error)
- func (h MockReconciler) Create(ctx context.Context, r client.Object, data map[string]any, meta any) (res ctrl.Result, err error)
- func (h MockReconciler) Delete(ctx context.Context, r client.Object, data map[string]any, meta any) (err error)
- func (h MockReconciler) Diff(r client.Object, data map[string]any, meta any) (diff controller.Diff, err error)
- func (h MockReconciler) OnError(ctx context.Context, r client.Object, data map[string]any, meta any, err error)
- func (h MockReconciler) OnSuccess(ctx context.Context, r client.Object, data map[string]any, meta any, ...) (err error)
- func (h MockReconciler) Read(ctx context.Context, r client.Object, data map[string]any, meta any) (res ctrl.Result, err error)
- func (h MockReconciler) Update(ctx context.Context, r client.Object, data map[string]any, meta any) (res ctrl.Result, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockReconciler ¶
func NewMockReconciler(reconciler controller.Reconciler, metaMock any) controller.Reconciler
Types ¶
type MockReconciler ¶
type MockReconciler struct {
// contains filtered or unexported fields
}
func (MockReconciler) Diff ¶
func (h MockReconciler) Diff(r client.Object, data map[string]any, meta any) (diff controller.Diff, err error)
Click to show internal directories.
Click to hide internal directories.