Documentation ¶
Index ¶
- type MockExecutor
- func (e *MockExecutor) CombinedOutputCommandAsHost(ctx context.Context, command string, arg ...string) ([]byte, error)
- func (e *MockExecutor) RunCommandAsHost(ctx context.Context, command string, arg ...string) error
- func (e *MockExecutor) RunCommandAsHostInto(ctx context.Context, into any, command string, arg ...string) error
- func (e *MockExecutor) StartCommandWithOutputAsHost(ctx context.Context, command string, arg ...string) (io.ReadCloser, error)
- func (e *MockExecutor) WrapCommandWithNSenter(command string, arg ...string) (string, []string)
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 (*MockExecutor) RunCommandAsHost ¶
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)
Click to show internal directories.
Click to hide internal directories.