mocks

package
v3.4.14 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 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 ContainerRuntimeExecutor

type ContainerRuntimeExecutor struct {
	mock.Mock
}

ContainerRuntimeExecutor is an autogenerated mock type for the ContainerRuntimeExecutor type

func NewContainerRuntimeExecutor added in v3.4.8

func NewContainerRuntimeExecutor(t mockConstructorTestingTNewContainerRuntimeExecutor) *ContainerRuntimeExecutor

NewContainerRuntimeExecutor creates a new instance of ContainerRuntimeExecutor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ContainerRuntimeExecutor) CopyFile

func (_m *ContainerRuntimeExecutor) CopyFile(containerName string, sourcePath string, destPath string, compressionLevel int) error

CopyFile provides a mock function with given fields: containerName, sourcePath, destPath, compressionLevel

func (*ContainerRuntimeExecutor) GetFileContents

func (_m *ContainerRuntimeExecutor) GetFileContents(containerName string, sourcePath string) (string, error)

GetFileContents provides a mock function with given fields: containerName, sourcePath

func (*ContainerRuntimeExecutor) GetOutputStream

func (_m *ContainerRuntimeExecutor) GetOutputStream(ctx context.Context, containerName string, combinedOutput bool) (io.ReadCloser, error)

GetOutputStream provides a mock function with given fields: ctx, containerName, combinedOutput

func (*ContainerRuntimeExecutor) Kill

func (_m *ContainerRuntimeExecutor) Kill(ctx context.Context, containerNames []string, terminationGracePeriodDuration time.Duration) error

Kill provides a mock function with given fields: ctx, containerNames, terminationGracePeriodDuration

func (*ContainerRuntimeExecutor) Wait

func (_m *ContainerRuntimeExecutor) Wait(ctx context.Context, containerNames []string) error

Wait provides a mock function with given fields: ctx, containerNames

Jump to

Keyboard shortcuts

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