fake

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakePodExecutor

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

FakePodExecutor is used to fake the work of PodExecutor.

func NewFakePodExecutor

func NewFakePodExecutor(executeReturnString []string, executeReturnError []error) *FakePodExecutor

NewFakePodExecutor creates a new FakePodExecutor.

func (*FakePodExecutor) Execute

func (mpe *FakePodExecutor) Execute(_ context.Context, _ string, _ string) (string, error)

Execute returns the preset values.

type FakeSimplePodContext

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

FakeSimplePodContext is used to fake the work of SimplePodContext.

func NewFakeSimplePodContext

func NewFakeSimplePodContext(executeReturnString [][]string, executeReturnError [][]error) *FakeSimplePodContext

NewFakeSimplePodContext creates a new FakeSimplePodContext.

func (*FakeSimplePodContext) Create

func (mspc *FakeSimplePodContext) Create(_ context.Context, _ func() *corev1.Pod) (pod.PodExecutor, error)

Create returns the preset values.

func (*FakeSimplePodContext) Delete

func (mspc *FakeSimplePodContext) Delete(_ context.Context, _, _ string) error

Delete always returns nil.

Jump to

Keyboard shortcuts

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