fakes

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeConfirmationProvider

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

func NewFakeConfirmationProvider

func NewFakeConfirmationProvider(confirm bool, err error) *FakeConfirmationProvider

func (*FakeConfirmationProvider) Confirm

func (f *FakeConfirmationProvider) Confirm(msg string, _ ...string) (bool, error)

func (*FakeConfirmationProvider) WasRequested

func (f *FakeConfirmationProvider) WasRequested() bool

func (*FakeConfirmationProvider) WasRequestedWithMsg

func (f *FakeConfirmationProvider) WasRequestedWithMsg(msg string) error

type FakeDiffer

type FakeDiffer struct {
	DiffResult string
	// contains filtered or unexported fields
}

func (*FakeDiffer) Args

func (fd *FakeDiffer) Args() (interface{}, interface{})

func (*FakeDiffer) Diff

func (fd *FakeDiffer) Diff(dOld, dNew interface{}) (string, error)

type FakeImageWaiter

type FakeImageWaiter struct {
	Calls []*v1alpha1.Image
}

func (*FakeImageWaiter) Wait

func (f *FakeImageWaiter) Wait(ctx context.Context, writer io.Writer, image *v1alpha1.Image) (string, error)

type FakeWaiter

type FakeWaiter struct {
	WaitCalls []WaitCall
}

func (*FakeWaiter) Wait

func (f *FakeWaiter) Wait(ctx context.Context, ob runtime.Object, checks ...watchTools.ConditionFunc) error

type WaitCall

type WaitCall struct {
	Object      runtime.Object
	ExtraChecks []watchTools.ConditionFunc
}

Jump to

Keyboard shortcuts

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