mocks

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docker

type Docker struct {
	mock.Mock
}

Docker is an autogenerated mock type for the Docker type

func NewDocker added in v0.9.5

func NewDocker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Docker

NewDocker creates a new instance of Docker. 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 (*Docker) ContainerCreate

func (_m *Docker) ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *v1.Platform, containerName string) (container.CreateResponse, error)

ContainerCreate provides a mock function with given fields: ctx, config, hostConfig, networkingConfig, platform, containerName

func (*Docker) ContainerExecAttach

func (_m *Docker) ContainerExecAttach(ctx context.Context, execID string, config types.ExecStartCheck) (types.HijackedResponse, error)

ContainerExecAttach provides a mock function with given fields: ctx, execID, config

func (*Docker) ContainerExecCreate

func (_m *Docker) ContainerExecCreate(ctx context.Context, _a1 string, config types.ExecConfig) (types.IDResponse, error)

ContainerExecCreate provides a mock function with given fields: ctx, _a1, config

func (*Docker) ContainerExecInspect

func (_m *Docker) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error)

ContainerExecInspect provides a mock function with given fields: ctx, execID

func (*Docker) ContainerList

func (_m *Docker) ContainerList(ctx context.Context, options container.ListOptions) ([]types.Container, error)

ContainerList provides a mock function with given fields: ctx, options

func (*Docker) ContainerLogs

func (_m *Docker) ContainerLogs(ctx context.Context, _a1 string, options container.LogsOptions) (io.ReadCloser, error)

ContainerLogs provides a mock function with given fields: ctx, _a1, options

func (*Docker) ContainerRemove

func (_m *Docker) ContainerRemove(ctx context.Context, containerID string, options container.RemoveOptions) error

ContainerRemove provides a mock function with given fields: ctx, containerID, options

func (*Docker) ContainerStart

func (_m *Docker) ContainerStart(ctx context.Context, containerID string, options container.StartOptions) error

ContainerStart provides a mock function with given fields: ctx, containerID, options

func (*Docker) ContainerStatPath

func (_m *Docker) ContainerStatPath(ctx context.Context, containerID string, path string) (types.ContainerPathStat, error)

ContainerStatPath provides a mock function with given fields: ctx, containerID, path

func (*Docker) ContainerWait

func (_m *Docker) ContainerWait(ctx context.Context, _a1 string, condition container.WaitCondition) (<-chan container.WaitResponse, <-chan error)

ContainerWait provides a mock function with given fields: ctx, _a1, condition

func (*Docker) CopyFromContainer

func (_m *Docker) CopyFromContainer(ctx context.Context, containerID string, srcPath string) (io.ReadCloser, types.ContainerPathStat, error)

CopyFromContainer provides a mock function with given fields: ctx, containerID, srcPath

func (*Docker) EXPECT added in v0.9.5

func (_m *Docker) EXPECT() *Docker_Expecter

func (*Docker) ImageList

func (_m *Docker) ImageList(ctx context.Context, listOption image.ListOptions) ([]image.Summary, error)

ImageList provides a mock function with given fields: ctx, listOption

func (*Docker) ImagePull

func (_m *Docker) ImagePull(ctx context.Context, refStr string, options image.PullOptions) (io.ReadCloser, error)

ImagePull provides a mock function with given fields: ctx, refStr, options

func (*Docker) VolumeCreate

func (_m *Docker) VolumeCreate(ctx context.Context, options volume.CreateOptions) (volume.Volume, error)

VolumeCreate provides a mock function with given fields: ctx, options

func (*Docker) VolumeList

func (_m *Docker) VolumeList(ctx context.Context, options volume.ListOptions) (volume.ListResponse, error)

VolumeList provides a mock function with given fields: ctx, options

func (*Docker) VolumeRemove

func (_m *Docker) VolumeRemove(ctx context.Context, volumeID string, force bool) error

VolumeRemove provides a mock function with given fields: ctx, volumeID, force

type Docker_ContainerCreate_Call added in v0.9.5

type Docker_ContainerCreate_Call struct {
	*mock.Call
}

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

func (*Docker_ContainerCreate_Call) Return added in v0.9.5

func (*Docker_ContainerCreate_Call) Run added in v0.9.5

func (_c *Docker_ContainerCreate_Call) Run(run func(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *v1.Platform, containerName string)) *Docker_ContainerCreate_Call

type Docker_ContainerExecAttach_Call added in v0.9.5

type Docker_ContainerExecAttach_Call struct {
	*mock.Call
}

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

func (*Docker_ContainerExecAttach_Call) Return added in v0.9.5

func (*Docker_ContainerExecAttach_Call) Run added in v0.9.5

func (*Docker_ContainerExecAttach_Call) RunAndReturn added in v0.9.5

type Docker_ContainerExecCreate_Call added in v0.9.5

type Docker_ContainerExecCreate_Call struct {
	*mock.Call
}

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

func (*Docker_ContainerExecCreate_Call) Return added in v0.9.5

func (*Docker_ContainerExecCreate_Call) Run added in v0.9.5

func (*Docker_ContainerExecCreate_Call) RunAndReturn added in v0.9.5

type Docker_ContainerExecInspect_Call added in v0.9.5

type Docker_ContainerExecInspect_Call struct {
	*mock.Call
}

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

func (*Docker_ContainerExecInspect_Call) Return added in v0.9.5

func (*Docker_ContainerExecInspect_Call) Run added in v0.9.5

func (*Docker_ContainerExecInspect_Call) RunAndReturn added in v0.9.5

type Docker_ContainerList_Call added in v0.9.5

type Docker_ContainerList_Call struct {
	*mock.Call
}

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

func (*Docker_ContainerList_Call) Return added in v0.9.5

func (*Docker_ContainerList_Call) Run added in v0.9.5

func (*Docker_ContainerList_Call) RunAndReturn added in v0.9.5

type Docker_ContainerLogs_Call added in v0.9.5

type Docker_ContainerLogs_Call struct {
	*mock.Call
}

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

func (*Docker_ContainerLogs_Call) Return added in v0.9.5

func (*Docker_ContainerLogs_Call) Run added in v0.9.5

func (*Docker_ContainerLogs_Call) RunAndReturn added in v0.9.5

type Docker_ContainerRemove_Call added in v0.9.5

type Docker_ContainerRemove_Call struct {
	*mock.Call
}

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

func (*Docker_ContainerRemove_Call) Return added in v0.9.5

func (*Docker_ContainerRemove_Call) Run added in v0.9.5

func (*Docker_ContainerRemove_Call) RunAndReturn added in v0.9.5

type Docker_ContainerStart_Call added in v0.9.5

type Docker_ContainerStart_Call struct {
	*mock.Call
}

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

func (*Docker_ContainerStart_Call) Return added in v0.9.5

func (*Docker_ContainerStart_Call) Run added in v0.9.5

func (*Docker_ContainerStart_Call) RunAndReturn added in v0.9.5

type Docker_ContainerStatPath_Call added in v0.9.5

type Docker_ContainerStatPath_Call struct {
	*mock.Call
}

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

func (*Docker_ContainerStatPath_Call) Return added in v0.9.5

func (*Docker_ContainerStatPath_Call) Run added in v0.9.5

func (_c *Docker_ContainerStatPath_Call) Run(run func(ctx context.Context, containerID string, path string)) *Docker_ContainerStatPath_Call

func (*Docker_ContainerStatPath_Call) RunAndReturn added in v0.9.5

type Docker_ContainerWait_Call added in v0.9.5

type Docker_ContainerWait_Call struct {
	*mock.Call
}

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

func (*Docker_ContainerWait_Call) Return added in v0.9.5

func (*Docker_ContainerWait_Call) Run added in v0.9.5

func (*Docker_ContainerWait_Call) RunAndReturn added in v0.9.5

type Docker_CopyFromContainer_Call added in v0.9.5

type Docker_CopyFromContainer_Call struct {
	*mock.Call
}

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

func (*Docker_CopyFromContainer_Call) Return added in v0.9.5

func (*Docker_CopyFromContainer_Call) Run added in v0.9.5

func (_c *Docker_CopyFromContainer_Call) Run(run func(ctx context.Context, containerID string, srcPath string)) *Docker_CopyFromContainer_Call

func (*Docker_CopyFromContainer_Call) RunAndReturn added in v0.9.5

type Docker_Expecter added in v0.9.5

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

func (*Docker_Expecter) ContainerCreate added in v0.9.5

func (_e *Docker_Expecter) ContainerCreate(ctx interface{}, config interface{}, hostConfig interface{}, networkingConfig interface{}, platform interface{}, containerName interface{}) *Docker_ContainerCreate_Call

ContainerCreate is a helper method to define mock.On call

  • ctx context.Context
  • config *container.Config
  • hostConfig *container.HostConfig
  • networkingConfig *network.NetworkingConfig
  • platform *v1.Platform
  • containerName string

func (*Docker_Expecter) ContainerExecAttach added in v0.9.5

func (_e *Docker_Expecter) ContainerExecAttach(ctx interface{}, execID interface{}, config interface{}) *Docker_ContainerExecAttach_Call

ContainerExecAttach is a helper method to define mock.On call

  • ctx context.Context
  • execID string
  • config types.ExecStartCheck

func (*Docker_Expecter) ContainerExecCreate added in v0.9.5

func (_e *Docker_Expecter) ContainerExecCreate(ctx interface{}, _a1 interface{}, config interface{}) *Docker_ContainerExecCreate_Call

ContainerExecCreate is a helper method to define mock.On call

  • ctx context.Context
  • _a1 string
  • config types.ExecConfig

func (*Docker_Expecter) ContainerExecInspect added in v0.9.5

func (_e *Docker_Expecter) ContainerExecInspect(ctx interface{}, execID interface{}) *Docker_ContainerExecInspect_Call

ContainerExecInspect is a helper method to define mock.On call

  • ctx context.Context
  • execID string

func (*Docker_Expecter) ContainerList added in v0.9.5

func (_e *Docker_Expecter) ContainerList(ctx interface{}, options interface{}) *Docker_ContainerList_Call

ContainerList is a helper method to define mock.On call

  • ctx context.Context
  • options container.ListOptions

func (*Docker_Expecter) ContainerLogs added in v0.9.5

func (_e *Docker_Expecter) ContainerLogs(ctx interface{}, _a1 interface{}, options interface{}) *Docker_ContainerLogs_Call

ContainerLogs is a helper method to define mock.On call

  • ctx context.Context
  • _a1 string
  • options container.LogsOptions

func (*Docker_Expecter) ContainerRemove added in v0.9.5

func (_e *Docker_Expecter) ContainerRemove(ctx interface{}, containerID interface{}, options interface{}) *Docker_ContainerRemove_Call

ContainerRemove is a helper method to define mock.On call

  • ctx context.Context
  • containerID string
  • options container.RemoveOptions

func (*Docker_Expecter) ContainerStart added in v0.9.5

func (_e *Docker_Expecter) ContainerStart(ctx interface{}, containerID interface{}, options interface{}) *Docker_ContainerStart_Call

ContainerStart is a helper method to define mock.On call

  • ctx context.Context
  • containerID string
  • options container.StartOptions

func (*Docker_Expecter) ContainerStatPath added in v0.9.5

func (_e *Docker_Expecter) ContainerStatPath(ctx interface{}, containerID interface{}, path interface{}) *Docker_ContainerStatPath_Call

ContainerStatPath is a helper method to define mock.On call

  • ctx context.Context
  • containerID string
  • path string

func (*Docker_Expecter) ContainerWait added in v0.9.5

func (_e *Docker_Expecter) ContainerWait(ctx interface{}, _a1 interface{}, condition interface{}) *Docker_ContainerWait_Call

ContainerWait is a helper method to define mock.On call

  • ctx context.Context
  • _a1 string
  • condition container.WaitCondition

func (*Docker_Expecter) CopyFromContainer added in v0.9.5

func (_e *Docker_Expecter) CopyFromContainer(ctx interface{}, containerID interface{}, srcPath interface{}) *Docker_CopyFromContainer_Call

CopyFromContainer is a helper method to define mock.On call

  • ctx context.Context
  • containerID string
  • srcPath string

func (*Docker_Expecter) ImageList added in v0.9.5

func (_e *Docker_Expecter) ImageList(ctx interface{}, listOption interface{}) *Docker_ImageList_Call

ImageList is a helper method to define mock.On call

  • ctx context.Context
  • listOption image.ListOptions

func (*Docker_Expecter) ImagePull added in v0.9.5

func (_e *Docker_Expecter) ImagePull(ctx interface{}, refStr interface{}, options interface{}) *Docker_ImagePull_Call

ImagePull is a helper method to define mock.On call

  • ctx context.Context
  • refStr string
  • options image.PullOptions

func (*Docker_Expecter) VolumeCreate added in v0.9.5

func (_e *Docker_Expecter) VolumeCreate(ctx interface{}, options interface{}) *Docker_VolumeCreate_Call

VolumeCreate is a helper method to define mock.On call

  • ctx context.Context
  • options volume.CreateOptions

func (*Docker_Expecter) VolumeList added in v0.9.5

func (_e *Docker_Expecter) VolumeList(ctx interface{}, options interface{}) *Docker_VolumeList_Call

VolumeList is a helper method to define mock.On call

  • ctx context.Context
  • options volume.ListOptions

func (*Docker_Expecter) VolumeRemove added in v0.9.5

func (_e *Docker_Expecter) VolumeRemove(ctx interface{}, volumeID interface{}, force interface{}) *Docker_VolumeRemove_Call

VolumeRemove is a helper method to define mock.On call

  • ctx context.Context
  • volumeID string
  • force bool

type Docker_ImageList_Call added in v0.9.5

type Docker_ImageList_Call struct {
	*mock.Call
}

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

func (*Docker_ImageList_Call) Return added in v0.9.5

func (*Docker_ImageList_Call) Run added in v0.9.5

func (_c *Docker_ImageList_Call) Run(run func(ctx context.Context, listOption image.ListOptions)) *Docker_ImageList_Call

func (*Docker_ImageList_Call) RunAndReturn added in v0.9.5

type Docker_ImagePull_Call added in v0.9.5

type Docker_ImagePull_Call struct {
	*mock.Call
}

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

func (*Docker_ImagePull_Call) Return added in v0.9.5

func (*Docker_ImagePull_Call) Run added in v0.9.5

func (_c *Docker_ImagePull_Call) Run(run func(ctx context.Context, refStr string, options image.PullOptions)) *Docker_ImagePull_Call

func (*Docker_ImagePull_Call) RunAndReturn added in v0.9.5

type Docker_VolumeCreate_Call added in v0.9.5

type Docker_VolumeCreate_Call struct {
	*mock.Call
}

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

func (*Docker_VolumeCreate_Call) Return added in v0.9.5

func (*Docker_VolumeCreate_Call) Run added in v0.9.5

func (*Docker_VolumeCreate_Call) RunAndReturn added in v0.9.5

type Docker_VolumeList_Call added in v0.9.5

type Docker_VolumeList_Call struct {
	*mock.Call
}

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

func (*Docker_VolumeList_Call) Return added in v0.9.5

func (*Docker_VolumeList_Call) Run added in v0.9.5

func (*Docker_VolumeList_Call) RunAndReturn added in v0.9.5

type Docker_VolumeRemove_Call added in v0.9.5

type Docker_VolumeRemove_Call struct {
	*mock.Call
}

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

func (*Docker_VolumeRemove_Call) Return added in v0.9.5

func (*Docker_VolumeRemove_Call) Run added in v0.9.5

func (_c *Docker_VolumeRemove_Call) Run(run func(ctx context.Context, volumeID string, force bool)) *Docker_VolumeRemove_Call

func (*Docker_VolumeRemove_Call) RunAndReturn added in v0.9.5

Jump to

Keyboard shortcuts

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