test

package
v4.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExecutor

type MockExecutor struct {
	MockExecuteCommandWithOutputAsHost func(ctx context.Context, command string, arg ...string) (io.ReadCloser, error)

	MockRunCommandAsHost            func(ctx context.Context, command string, arg ...string) error
	MockRunCommandAsHostInto        func(ctx context.Context, into any, command string, arg ...string) error
	MockCombinedOutputCommandAsHost func(ctx context.Context, command string, arg ...string) ([]byte, error)
}

func (*MockExecutor) CombinedOutputCommandAsHost

func (e *MockExecutor) CombinedOutputCommandAsHost(ctx context.Context, command string, arg ...string) ([]byte, error)

func (*MockExecutor) RunCommandAsHost

func (e *MockExecutor) RunCommandAsHost(ctx context.Context, command string, arg ...string) error

RunCommandAsHost mocks RunCommandAsHost

func (*MockExecutor) RunCommandAsHostInto

func (e *MockExecutor) RunCommandAsHostInto(ctx context.Context, into any, command string, arg ...string) error

RunCommandAsHostInto mocks RunCommandAsHostInto

func (*MockExecutor) StartCommandWithOutputAsHost

func (e *MockExecutor) StartCommandWithOutputAsHost(ctx context.Context, command string, arg ...string) (io.ReadCloser, error)

StartCommandWithOutputAsHost mocks StartCommandWithOutputAsHost

func (*MockExecutor) WrapCommandWithNSenter

func (e *MockExecutor) WrapCommandWithNSenter(command string, arg ...string) (string, []string)

Jump to

Keyboard shortcuts

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