mocks

package
v4.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 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

func NewContainerRuntimeExecutor(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*ContainerRuntimeExecutor) CopyFile

func (_mock *ContainerRuntimeExecutor) CopyFile(ctx context.Context, containerName string, sourcePath string, destPath string, compressionLevel int) error

CopyFile provides a mock function for the type ContainerRuntimeExecutor

func (*ContainerRuntimeExecutor) EXPECT

func (*ContainerRuntimeExecutor) GetFileContents

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

GetFileContents provides a mock function for the type ContainerRuntimeExecutor

func (*ContainerRuntimeExecutor) GetOutputStream

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

GetOutputStream provides a mock function for the type ContainerRuntimeExecutor

func (*ContainerRuntimeExecutor) Kill

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

Kill provides a mock function for the type ContainerRuntimeExecutor

func (*ContainerRuntimeExecutor) Wait

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

Wait provides a mock function for the type ContainerRuntimeExecutor

type ContainerRuntimeExecutor_CopyFile_Call

type ContainerRuntimeExecutor_CopyFile_Call struct {
	*mock.Call
}

ContainerRuntimeExecutor_CopyFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CopyFile'

func (*ContainerRuntimeExecutor_CopyFile_Call) Return

func (*ContainerRuntimeExecutor_CopyFile_Call) Run

func (_c *ContainerRuntimeExecutor_CopyFile_Call) Run(run func(ctx context.Context, containerName string, sourcePath string, destPath string, compressionLevel int)) *ContainerRuntimeExecutor_CopyFile_Call

func (*ContainerRuntimeExecutor_CopyFile_Call) RunAndReturn

func (_c *ContainerRuntimeExecutor_CopyFile_Call) RunAndReturn(run func(ctx context.Context, containerName string, sourcePath string, destPath string, compressionLevel int) error) *ContainerRuntimeExecutor_CopyFile_Call

type ContainerRuntimeExecutor_Expecter

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

func (*ContainerRuntimeExecutor_Expecter) CopyFile

func (_e *ContainerRuntimeExecutor_Expecter) CopyFile(ctx interface{}, containerName interface{}, sourcePath interface{}, destPath interface{}, compressionLevel interface{}) *ContainerRuntimeExecutor_CopyFile_Call

CopyFile is a helper method to define mock.On call

  • ctx context.Context
  • containerName string
  • sourcePath string
  • destPath string
  • compressionLevel int

func (*ContainerRuntimeExecutor_Expecter) GetFileContents

func (_e *ContainerRuntimeExecutor_Expecter) GetFileContents(containerName interface{}, sourcePath interface{}) *ContainerRuntimeExecutor_GetFileContents_Call

GetFileContents is a helper method to define mock.On call

  • containerName string
  • sourcePath string

func (*ContainerRuntimeExecutor_Expecter) GetOutputStream

func (_e *ContainerRuntimeExecutor_Expecter) GetOutputStream(ctx interface{}, containerName interface{}, combinedOutput interface{}) *ContainerRuntimeExecutor_GetOutputStream_Call

GetOutputStream is a helper method to define mock.On call

  • ctx context.Context
  • containerName string
  • combinedOutput bool

func (*ContainerRuntimeExecutor_Expecter) Kill

func (_e *ContainerRuntimeExecutor_Expecter) Kill(ctx interface{}, containerNames interface{}, terminationGracePeriodDuration interface{}) *ContainerRuntimeExecutor_Kill_Call

Kill is a helper method to define mock.On call

  • ctx context.Context
  • containerNames []string
  • terminationGracePeriodDuration time.Duration

func (*ContainerRuntimeExecutor_Expecter) Wait

func (_e *ContainerRuntimeExecutor_Expecter) Wait(ctx interface{}, containerNames interface{}) *ContainerRuntimeExecutor_Wait_Call

Wait is a helper method to define mock.On call

  • ctx context.Context
  • containerNames []string

type ContainerRuntimeExecutor_GetFileContents_Call

type ContainerRuntimeExecutor_GetFileContents_Call struct {
	*mock.Call
}

ContainerRuntimeExecutor_GetFileContents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFileContents'

func (*ContainerRuntimeExecutor_GetFileContents_Call) Return

func (*ContainerRuntimeExecutor_GetFileContents_Call) Run

func (*ContainerRuntimeExecutor_GetFileContents_Call) RunAndReturn

type ContainerRuntimeExecutor_GetOutputStream_Call

type ContainerRuntimeExecutor_GetOutputStream_Call struct {
	*mock.Call
}

ContainerRuntimeExecutor_GetOutputStream_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOutputStream'

func (*ContainerRuntimeExecutor_GetOutputStream_Call) Return

func (*ContainerRuntimeExecutor_GetOutputStream_Call) Run

func (*ContainerRuntimeExecutor_GetOutputStream_Call) RunAndReturn

type ContainerRuntimeExecutor_Kill_Call

type ContainerRuntimeExecutor_Kill_Call struct {
	*mock.Call
}

ContainerRuntimeExecutor_Kill_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Kill'

func (*ContainerRuntimeExecutor_Kill_Call) Return

func (*ContainerRuntimeExecutor_Kill_Call) Run

func (_c *ContainerRuntimeExecutor_Kill_Call) Run(run func(ctx context.Context, containerNames []string, terminationGracePeriodDuration time.Duration)) *ContainerRuntimeExecutor_Kill_Call

func (*ContainerRuntimeExecutor_Kill_Call) RunAndReturn

func (_c *ContainerRuntimeExecutor_Kill_Call) RunAndReturn(run func(ctx context.Context, containerNames []string, terminationGracePeriodDuration time.Duration) error) *ContainerRuntimeExecutor_Kill_Call

type ContainerRuntimeExecutor_Wait_Call

type ContainerRuntimeExecutor_Wait_Call struct {
	*mock.Call
}

ContainerRuntimeExecutor_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'

func (*ContainerRuntimeExecutor_Wait_Call) Return

func (*ContainerRuntimeExecutor_Wait_Call) Run

func (*ContainerRuntimeExecutor_Wait_Call) RunAndReturn

func (_c *ContainerRuntimeExecutor_Wait_Call) RunAndReturn(run func(ctx context.Context, containerNames []string) error) *ContainerRuntimeExecutor_Wait_Call

Jump to

Keyboard shortcuts

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