fake

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeApprover

type FakeApprover struct {
	*FakeEvaluator
	*FakeWebhook
	*FakeReconciler
	// contains filtered or unexported fields
}

FakeApprover is a testing approver designed to mock approvers with a pre-determined response.

func NewFakeApprover

func NewFakeApprover() *FakeApprover

func (*FakeApprover) Prepare

func (f *FakeApprover) Prepare(ctx context.Context, log logr.Logger, mgr manager.Manager) error

func (*FakeApprover) RegisterFlags

func (f *FakeApprover) RegisterFlags(pf *pflag.FlagSet)

func (*FakeApprover) WithEvaluator

func (f *FakeApprover) WithEvaluator(evaluator *FakeEvaluator) *FakeApprover

func (*FakeApprover) WithPrepare

func (f *FakeApprover) WithPrepare(fn func(context.Context, logr.Logger, manager.Manager) error) *FakeApprover

func (*FakeApprover) WithReconciler

func (f *FakeApprover) WithReconciler(reconciler *FakeReconciler) *FakeApprover

func (*FakeApprover) WithRegisterFlags

func (f *FakeApprover) WithRegisterFlags(fn func(*pflag.FlagSet)) *FakeApprover

type FakeEvaluator

type FakeEvaluator struct {
	// contains filtered or unexported fields
}

FakeEvaluator is a testing evaluator designed to mock evaluators with a pre-determined response.

func NewFakeEvaluator

func NewFakeEvaluator() *FakeEvaluator

type FakeReconciler

type FakeReconciler struct {
	// contains filtered or unexported fields
}

FakeReconciler is a testing reconciler designed to mock Reconcilers with a pre-determined response.

func NewFakeReconciler

func NewFakeReconciler() *FakeReconciler

func (*FakeReconciler) EnqueueChan added in v0.2.0

func (f *FakeReconciler) EnqueueChan() <-chan string

func (*FakeReconciler) Name

func (f *FakeReconciler) Name() string

func (*FakeReconciler) WithEnqueueChan added in v0.2.0

func (f *FakeReconciler) WithEnqueueChan(fn func() <-chan string) *FakeReconciler

func (*FakeReconciler) WithName

func (f *FakeReconciler) WithName(name string) *FakeReconciler

type FakeWebhook

type FakeWebhook struct {
	// contains filtered or unexported fields
}

FakeWebhook is a testing webook designed to mock webhooks with a pre-determined response.

func NewFakeWebhook

func NewFakeWebhook() *FakeWebhook

Jump to

Keyboard shortcuts

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