mock

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) Configure

func (h MockReconciler) Configure(ctx context.Context, req ctrl.Request, resource client.Object) (meta any, err error)

func (MockReconciler) Create

func (h MockReconciler) Create(ctx context.Context, r client.Object, data map[string]any, meta any) (res ctrl.Result, err error)

func (MockReconciler) Delete

func (h MockReconciler) Delete(ctx context.Context, r client.Object, data map[string]any, meta any) (err error)

func (MockReconciler) Diff

func (h MockReconciler) Diff(r client.Object, data map[string]any, meta any) (diff controller.Diff, err error)

func (MockReconciler) OnError

func (h MockReconciler) OnError(ctx context.Context, r client.Object, data map[string]any, meta any, err error)

func (MockReconciler) OnSuccess

func (h MockReconciler) OnSuccess(ctx context.Context, r client.Object, data map[string]any, meta any, diff controller.Diff) (err error)

func (MockReconciler) Read

func (h MockReconciler) Read(ctx context.Context, r client.Object, data map[string]any, meta any) (res ctrl.Result, err error)

func (MockReconciler) Update

func (h MockReconciler) Update(ctx context.Context, r client.Object, data map[string]any, meta any) (res ctrl.Result, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL