mocks

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: AGPL-3.0-or-later Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerClient

type DockerClient struct {
	mock.Mock
}

DockerClient is an autogenerated mock type for the DockerClient type

func NewDockerClient

func NewDockerClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *DockerClient

NewDockerClient creates a new instance of DockerClient. 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 (*DockerClient) Close

func (_m *DockerClient) Close() error

Close provides a mock function with no fields

func (*DockerClient) ContainerCreate

ContainerCreate provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5

func (*DockerClient) ContainerList

ContainerList provides a mock function with given fields: _a0, _a1

func (*DockerClient) ContainerLogs added in v0.0.6

func (_m *DockerClient) ContainerLogs(_a0 context.Context, _a1 string, _a2 typescontainer.LogsOptions) (io.ReadCloser, error)

ContainerLogs provides a mock function with given fields: _a0, _a1, _a2

func (*DockerClient) ContainerRemove

func (_m *DockerClient) ContainerRemove(_a0 context.Context, _a1 string, _a2 typescontainer.RemoveOptions) error

ContainerRemove provides a mock function with given fields: _a0, _a1, _a2

func (*DockerClient) ContainerStart

func (_m *DockerClient) ContainerStart(_a0 context.Context, _a1 string, _a2 typescontainer.StartOptions) error

ContainerStart provides a mock function with given fields: _a0, _a1, _a2

func (*DockerClient) ContainerStats

func (_m *DockerClient) ContainerStats(_a0 context.Context, _a1 string, _a2 bool) (typescontainer.StatsResponseReader, error)

ContainerStats provides a mock function with given fields: _a0, _a1, _a2

func (*DockerClient) ContainerStop

func (_m *DockerClient) ContainerStop(_a0 context.Context, _a1 string, _a2 typescontainer.StopOptions) error

ContainerStop provides a mock function with given fields: _a0, _a1, _a2

func (*DockerClient) ContainerWait

func (_m *DockerClient) ContainerWait(_a0 context.Context, _a1 string, _a2 typescontainer.WaitCondition) (<-chan typescontainer.WaitResponse, <-chan error)

ContainerWait provides a mock function with given fields: _a0, _a1, _a2

func (*DockerClient) CopyToContainer

func (_m *DockerClient) CopyToContainer(_a0 context.Context, _a1 string, _a2 string, _a3 io.Reader, _a4 typescontainer.CopyToContainerOptions) error

CopyToContainer provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*DockerClient) EXPECT

func (_m *DockerClient) EXPECT() *DockerClient_Expecter

func (*DockerClient) Events

func (_m *DockerClient) Events(_a0 context.Context, _a1 events.ListOptions) (<-chan events.Message, <-chan error)

Events provides a mock function with given fields: _a0, _a1

func (*DockerClient) ImagePull

func (_m *DockerClient) ImagePull(_a0 context.Context, _a1 string, _a2 image.PullOptions) (io.ReadCloser, error)

ImagePull provides a mock function with given fields: _a0, _a1, _a2

func (*DockerClient) NetworkConnect

func (_m *DockerClient) NetworkConnect(_a0 context.Context, _a1 string, _a2 string, _a3 *network.EndpointSettings) error

NetworkConnect provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*DockerClient) NetworkCreate

func (_m *DockerClient) NetworkCreate(_a0 context.Context, _a1 string, _a2 network.CreateOptions) (network.CreateResponse, error)

NetworkCreate provides a mock function with given fields: _a0, _a1, _a2

func (*DockerClient) NetworkList

func (_m *DockerClient) NetworkList(_a0 context.Context, _a1 network.ListOptions) ([]network.Summary, error)

NetworkList provides a mock function with given fields: _a0, _a1

func (*DockerClient) NetworkRemove

func (_m *DockerClient) NetworkRemove(_a0 context.Context, _a1 string) error

NetworkRemove provides a mock function with given fields: _a0, _a1

type DockerClient_Close_Call

type DockerClient_Close_Call struct {
	*mock.Call
}

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

func (*DockerClient_Close_Call) Return

func (*DockerClient_Close_Call) Run

func (_c *DockerClient_Close_Call) Run(run func()) *DockerClient_Close_Call

func (*DockerClient_Close_Call) RunAndReturn

func (_c *DockerClient_Close_Call) RunAndReturn(run func() error) *DockerClient_Close_Call

type DockerClient_ContainerCreate_Call

type DockerClient_ContainerCreate_Call struct {
	*mock.Call
}

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

func (*DockerClient_ContainerCreate_Call) Return

func (*DockerClient_ContainerCreate_Call) Run

type DockerClient_ContainerList_Call

type DockerClient_ContainerList_Call struct {
	*mock.Call
}

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

func (*DockerClient_ContainerList_Call) Return

func (*DockerClient_ContainerList_Call) Run

func (*DockerClient_ContainerList_Call) RunAndReturn

type DockerClient_ContainerLogs_Call added in v0.0.6

type DockerClient_ContainerLogs_Call struct {
	*mock.Call
}

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

func (*DockerClient_ContainerLogs_Call) Return added in v0.0.6

func (*DockerClient_ContainerLogs_Call) Run added in v0.0.6

func (*DockerClient_ContainerLogs_Call) RunAndReturn added in v0.0.6

type DockerClient_ContainerRemove_Call

type DockerClient_ContainerRemove_Call struct {
	*mock.Call
}

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

func (*DockerClient_ContainerRemove_Call) Return

func (*DockerClient_ContainerRemove_Call) Run

func (*DockerClient_ContainerRemove_Call) RunAndReturn

type DockerClient_ContainerStart_Call

type DockerClient_ContainerStart_Call struct {
	*mock.Call
}

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

func (*DockerClient_ContainerStart_Call) Return

func (*DockerClient_ContainerStart_Call) Run

func (*DockerClient_ContainerStart_Call) RunAndReturn

type DockerClient_ContainerStats_Call

type DockerClient_ContainerStats_Call struct {
	*mock.Call
}

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

func (*DockerClient_ContainerStats_Call) Return

func (*DockerClient_ContainerStats_Call) Run

func (*DockerClient_ContainerStats_Call) RunAndReturn

type DockerClient_ContainerStop_Call

type DockerClient_ContainerStop_Call struct {
	*mock.Call
}

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

func (*DockerClient_ContainerStop_Call) Return

func (*DockerClient_ContainerStop_Call) Run

func (*DockerClient_ContainerStop_Call) RunAndReturn

type DockerClient_ContainerWait_Call

type DockerClient_ContainerWait_Call struct {
	*mock.Call
}

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

func (*DockerClient_ContainerWait_Call) Return

func (*DockerClient_ContainerWait_Call) Run

func (*DockerClient_ContainerWait_Call) RunAndReturn

type DockerClient_CopyToContainer_Call

type DockerClient_CopyToContainer_Call struct {
	*mock.Call
}

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

func (*DockerClient_CopyToContainer_Call) Return

func (*DockerClient_CopyToContainer_Call) Run

type DockerClient_Events_Call

type DockerClient_Events_Call struct {
	*mock.Call
}

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

func (*DockerClient_Events_Call) Return

func (_c *DockerClient_Events_Call) Return(_a0 <-chan events.Message, _a1 <-chan error) *DockerClient_Events_Call

func (*DockerClient_Events_Call) Run

func (*DockerClient_Events_Call) RunAndReturn

type DockerClient_Expecter

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

func (*DockerClient_Expecter) Close

Close is a helper method to define mock.On call

func (*DockerClient_Expecter) ContainerCreate

func (_e *DockerClient_Expecter) ContainerCreate(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}, _a4 interface{}, _a5 interface{}) *DockerClient_ContainerCreate_Call

ContainerCreate is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *typescontainer.Config
  • _a2 *typescontainer.HostConfig
  • _a3 *network.NetworkingConfig
  • _a4 *v1.Platform
  • _a5 string

func (*DockerClient_Expecter) ContainerList

func (_e *DockerClient_Expecter) ContainerList(_a0 interface{}, _a1 interface{}) *DockerClient_ContainerList_Call

ContainerList is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 typescontainer.ListOptions

func (*DockerClient_Expecter) ContainerLogs added in v0.0.6

func (_e *DockerClient_Expecter) ContainerLogs(_a0 interface{}, _a1 interface{}, _a2 interface{}) *DockerClient_ContainerLogs_Call

ContainerLogs is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 typescontainer.LogsOptions

func (*DockerClient_Expecter) ContainerRemove

func (_e *DockerClient_Expecter) ContainerRemove(_a0 interface{}, _a1 interface{}, _a2 interface{}) *DockerClient_ContainerRemove_Call

ContainerRemove is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 typescontainer.RemoveOptions

func (*DockerClient_Expecter) ContainerStart

func (_e *DockerClient_Expecter) ContainerStart(_a0 interface{}, _a1 interface{}, _a2 interface{}) *DockerClient_ContainerStart_Call

ContainerStart is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 typescontainer.StartOptions

func (*DockerClient_Expecter) ContainerStats

func (_e *DockerClient_Expecter) ContainerStats(_a0 interface{}, _a1 interface{}, _a2 interface{}) *DockerClient_ContainerStats_Call

ContainerStats is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 bool

func (*DockerClient_Expecter) ContainerStop

func (_e *DockerClient_Expecter) ContainerStop(_a0 interface{}, _a1 interface{}, _a2 interface{}) *DockerClient_ContainerStop_Call

ContainerStop is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 typescontainer.StopOptions

func (*DockerClient_Expecter) ContainerWait

func (_e *DockerClient_Expecter) ContainerWait(_a0 interface{}, _a1 interface{}, _a2 interface{}) *DockerClient_ContainerWait_Call

ContainerWait is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 typescontainer.WaitCondition

func (*DockerClient_Expecter) CopyToContainer

func (_e *DockerClient_Expecter) CopyToContainer(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}, _a4 interface{}) *DockerClient_CopyToContainer_Call

CopyToContainer is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string
  • _a3 io.Reader
  • _a4 typescontainer.CopyToContainerOptions

func (*DockerClient_Expecter) Events

func (_e *DockerClient_Expecter) Events(_a0 interface{}, _a1 interface{}) *DockerClient_Events_Call

Events is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 events.ListOptions

func (*DockerClient_Expecter) ImagePull

func (_e *DockerClient_Expecter) ImagePull(_a0 interface{}, _a1 interface{}, _a2 interface{}) *DockerClient_ImagePull_Call

ImagePull is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 image.PullOptions

func (*DockerClient_Expecter) NetworkConnect

func (_e *DockerClient_Expecter) NetworkConnect(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *DockerClient_NetworkConnect_Call

NetworkConnect is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 string
  • _a3 *network.EndpointSettings

func (*DockerClient_Expecter) NetworkCreate

func (_e *DockerClient_Expecter) NetworkCreate(_a0 interface{}, _a1 interface{}, _a2 interface{}) *DockerClient_NetworkCreate_Call

NetworkCreate is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string
  • _a2 network.CreateOptions

func (*DockerClient_Expecter) NetworkList

func (_e *DockerClient_Expecter) NetworkList(_a0 interface{}, _a1 interface{}) *DockerClient_NetworkList_Call

NetworkList is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 network.ListOptions

func (*DockerClient_Expecter) NetworkRemove

func (_e *DockerClient_Expecter) NetworkRemove(_a0 interface{}, _a1 interface{}) *DockerClient_NetworkRemove_Call

NetworkRemove is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

type DockerClient_ImagePull_Call

type DockerClient_ImagePull_Call struct {
	*mock.Call
}

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

func (*DockerClient_ImagePull_Call) Return

func (*DockerClient_ImagePull_Call) Run

func (*DockerClient_ImagePull_Call) RunAndReturn

type DockerClient_NetworkConnect_Call

type DockerClient_NetworkConnect_Call struct {
	*mock.Call
}

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

func (*DockerClient_NetworkConnect_Call) Return

func (*DockerClient_NetworkConnect_Call) Run

func (*DockerClient_NetworkConnect_Call) RunAndReturn

type DockerClient_NetworkCreate_Call

type DockerClient_NetworkCreate_Call struct {
	*mock.Call
}

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

func (*DockerClient_NetworkCreate_Call) Return

func (*DockerClient_NetworkCreate_Call) Run

type DockerClient_NetworkList_Call

type DockerClient_NetworkList_Call struct {
	*mock.Call
}

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

func (*DockerClient_NetworkList_Call) Return

func (*DockerClient_NetworkList_Call) Run

func (*DockerClient_NetworkList_Call) RunAndReturn

type DockerClient_NetworkRemove_Call

type DockerClient_NetworkRemove_Call struct {
	*mock.Call
}

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

func (*DockerClient_NetworkRemove_Call) Return

func (*DockerClient_NetworkRemove_Call) Run

func (*DockerClient_NetworkRemove_Call) RunAndReturn

Jump to

Keyboard shortcuts

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