mockdocker

package
v1.0.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	mock.Mock
}

MockClient is an autogenerated mock type for the Client type

func NewMockClient

func NewMockClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClient

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

func (_mock *MockClient) Close() error

Close provides a mock function for the type MockClient

func (*MockClient) ContainerCreate

ContainerCreate provides a mock function for the type MockClient

func (*MockClient) ContainerInspect

ContainerInspect provides a mock function for the type MockClient

func (*MockClient) ContainerList

ContainerList provides a mock function for the type MockClient

func (*MockClient) ContainerLogs

ContainerLogs provides a mock function for the type MockClient

func (*MockClient) ContainerRemove

ContainerRemove provides a mock function for the type MockClient

func (*MockClient) ContainerStart

ContainerStart provides a mock function for the type MockClient

func (*MockClient) ContainerStop

ContainerStop provides a mock function for the type MockClient

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) ImageInspect

func (_mock *MockClient) ImageInspect(ctx context.Context, imageID string, opts ...client.ImageInspectOption) (client.ImageInspectResult, error)

ImageInspect provides a mock function for the type MockClient

func (*MockClient) ImageList

ImageList provides a mock function for the type MockClient

func (*MockClient) ImageLoad

func (_mock *MockClient) ImageLoad(ctx context.Context, input io.Reader, opts ...client.ImageLoadOption) (client.ImageLoadResult, error)

ImageLoad provides a mock function for the type MockClient

func (*MockClient) ImagePull

ImagePull provides a mock function for the type MockClient

func (*MockClient) ImagePush

ImagePush provides a mock function for the type MockClient

func (*MockClient) ImageRemove

func (_mock *MockClient) ImageRemove(ctx context.Context, imageID string, opts client.ImageRemoveOptions) (client.ImageRemoveResult, error)

ImageRemove provides a mock function for the type MockClient

func (*MockClient) ImageSave

func (_mock *MockClient) ImageSave(ctx context.Context, imageIDs []string, opts ...client.ImageSaveOption) (client.ImageSaveResult, error)

ImageSave provides a mock function for the type MockClient

func (*MockClient) ImageTag

ImageTag provides a mock function for the type MockClient

func (*MockClient) Info

Info provides a mock function for the type MockClient

func (*MockClient) ServerVersion

ServerVersion provides a mock function for the type MockClient

type MockClient_Close_Call

type MockClient_Close_Call struct {
	*mock.Call
}

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

func (*MockClient_Close_Call) Return

func (*MockClient_Close_Call) Run

func (_c *MockClient_Close_Call) Run(run func()) *MockClient_Close_Call

func (*MockClient_Close_Call) RunAndReturn

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

type MockClient_ContainerCreate_Call

type MockClient_ContainerCreate_Call struct {
	*mock.Call
}

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

func (*MockClient_ContainerCreate_Call) Return

func (*MockClient_ContainerCreate_Call) Run

func (*MockClient_ContainerCreate_Call) RunAndReturn

type MockClient_ContainerInspect_Call

type MockClient_ContainerInspect_Call struct {
	*mock.Call
}

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

func (*MockClient_ContainerInspect_Call) Return

func (*MockClient_ContainerInspect_Call) Run

func (*MockClient_ContainerInspect_Call) RunAndReturn

type MockClient_ContainerList_Call

type MockClient_ContainerList_Call struct {
	*mock.Call
}

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

func (*MockClient_ContainerList_Call) Return

func (*MockClient_ContainerList_Call) Run

func (*MockClient_ContainerList_Call) RunAndReturn

type MockClient_ContainerLogs_Call

type MockClient_ContainerLogs_Call struct {
	*mock.Call
}

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

func (*MockClient_ContainerLogs_Call) Return

func (*MockClient_ContainerLogs_Call) Run

func (*MockClient_ContainerLogs_Call) RunAndReturn

type MockClient_ContainerRemove_Call

type MockClient_ContainerRemove_Call struct {
	*mock.Call
}

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

func (*MockClient_ContainerRemove_Call) Return

func (*MockClient_ContainerRemove_Call) Run

func (*MockClient_ContainerRemove_Call) RunAndReturn

type MockClient_ContainerStart_Call

type MockClient_ContainerStart_Call struct {
	*mock.Call
}

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

func (*MockClient_ContainerStart_Call) Return

func (*MockClient_ContainerStart_Call) Run

func (*MockClient_ContainerStart_Call) RunAndReturn

type MockClient_ContainerStop_Call

type MockClient_ContainerStop_Call struct {
	*mock.Call
}

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

func (*MockClient_ContainerStop_Call) Return

func (*MockClient_ContainerStop_Call) Run

func (*MockClient_ContainerStop_Call) RunAndReturn

type MockClient_Expecter

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

func (*MockClient_Expecter) Close

Close is a helper method to define mock.On call

func (*MockClient_Expecter) ContainerCreate

func (_e *MockClient_Expecter) ContainerCreate(ctx interface{}, opts interface{}) *MockClient_ContainerCreate_Call

ContainerCreate is a helper method to define mock.On call

  • ctx context.Context
  • opts client.ContainerCreateOptions

func (*MockClient_Expecter) ContainerInspect

func (_e *MockClient_Expecter) ContainerInspect(ctx interface{}, id interface{}, opts interface{}) *MockClient_ContainerInspect_Call

ContainerInspect is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • opts client.ContainerInspectOptions

func (*MockClient_Expecter) ContainerList

func (_e *MockClient_Expecter) ContainerList(ctx interface{}, opts interface{}) *MockClient_ContainerList_Call

ContainerList is a helper method to define mock.On call

  • ctx context.Context
  • opts client.ContainerListOptions

func (*MockClient_Expecter) ContainerLogs

func (_e *MockClient_Expecter) ContainerLogs(ctx interface{}, id interface{}, opts interface{}) *MockClient_ContainerLogs_Call

ContainerLogs is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • opts client.ContainerLogsOptions

func (*MockClient_Expecter) ContainerRemove

func (_e *MockClient_Expecter) ContainerRemove(ctx interface{}, id interface{}, opts interface{}) *MockClient_ContainerRemove_Call

ContainerRemove is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • opts client.ContainerRemoveOptions

func (*MockClient_Expecter) ContainerStart

func (_e *MockClient_Expecter) ContainerStart(ctx interface{}, id interface{}, opts interface{}) *MockClient_ContainerStart_Call

ContainerStart is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • opts client.ContainerStartOptions

func (*MockClient_Expecter) ContainerStop

func (_e *MockClient_Expecter) ContainerStop(ctx interface{}, id interface{}, opts interface{}) *MockClient_ContainerStop_Call

ContainerStop is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • opts client.ContainerStopOptions

func (*MockClient_Expecter) ImageInspect

func (_e *MockClient_Expecter) ImageInspect(ctx interface{}, imageID interface{}, opts ...interface{}) *MockClient_ImageInspect_Call

ImageInspect is a helper method to define mock.On call

  • ctx context.Context
  • imageID string
  • opts ...client.ImageInspectOption

func (*MockClient_Expecter) ImageList

func (_e *MockClient_Expecter) ImageList(ctx interface{}, opts interface{}) *MockClient_ImageList_Call

ImageList is a helper method to define mock.On call

  • ctx context.Context
  • opts client.ImageListOptions

func (*MockClient_Expecter) ImageLoad

func (_e *MockClient_Expecter) ImageLoad(ctx interface{}, input interface{}, opts ...interface{}) *MockClient_ImageLoad_Call

ImageLoad is a helper method to define mock.On call

  • ctx context.Context
  • input io.Reader
  • opts ...client.ImageLoadOption

func (*MockClient_Expecter) ImagePull

func (_e *MockClient_Expecter) ImagePull(ctx interface{}, ref interface{}, opts interface{}) *MockClient_ImagePull_Call

ImagePull is a helper method to define mock.On call

  • ctx context.Context
  • ref string
  • opts client.ImagePullOptions

func (*MockClient_Expecter) ImagePush

func (_e *MockClient_Expecter) ImagePush(ctx interface{}, ref interface{}, opts interface{}) *MockClient_ImagePush_Call

ImagePush is a helper method to define mock.On call

  • ctx context.Context
  • ref string
  • opts client.ImagePushOptions

func (*MockClient_Expecter) ImageRemove

func (_e *MockClient_Expecter) ImageRemove(ctx interface{}, imageID interface{}, opts interface{}) *MockClient_ImageRemove_Call

ImageRemove is a helper method to define mock.On call

  • ctx context.Context
  • imageID string
  • opts client.ImageRemoveOptions

func (*MockClient_Expecter) ImageSave

func (_e *MockClient_Expecter) ImageSave(ctx interface{}, imageIDs interface{}, opts ...interface{}) *MockClient_ImageSave_Call

ImageSave is a helper method to define mock.On call

  • ctx context.Context
  • imageIDs []string
  • opts ...client.ImageSaveOption

func (*MockClient_Expecter) ImageTag

func (_e *MockClient_Expecter) ImageTag(ctx interface{}, opts interface{}) *MockClient_ImageTag_Call

ImageTag is a helper method to define mock.On call

  • ctx context.Context
  • opts client.ImageTagOptions

func (*MockClient_Expecter) Info

func (_e *MockClient_Expecter) Info(ctx interface{}, opts interface{}) *MockClient_Info_Call

Info is a helper method to define mock.On call

  • ctx context.Context
  • opts client.InfoOptions

func (*MockClient_Expecter) ServerVersion

func (_e *MockClient_Expecter) ServerVersion(ctx interface{}, opts interface{}) *MockClient_ServerVersion_Call

ServerVersion is a helper method to define mock.On call

  • ctx context.Context
  • opts client.ServerVersionOptions

type MockClient_ImageInspect_Call

type MockClient_ImageInspect_Call struct {
	*mock.Call
}

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

func (*MockClient_ImageInspect_Call) Return

func (*MockClient_ImageInspect_Call) Run

func (*MockClient_ImageInspect_Call) RunAndReturn

type MockClient_ImageList_Call

type MockClient_ImageList_Call struct {
	*mock.Call
}

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

func (*MockClient_ImageList_Call) Return

func (*MockClient_ImageList_Call) Run

func (*MockClient_ImageList_Call) RunAndReturn

type MockClient_ImageLoad_Call

type MockClient_ImageLoad_Call struct {
	*mock.Call
}

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

func (*MockClient_ImageLoad_Call) Return

func (*MockClient_ImageLoad_Call) Run

func (*MockClient_ImageLoad_Call) RunAndReturn

type MockClient_ImagePull_Call

type MockClient_ImagePull_Call struct {
	*mock.Call
}

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

func (*MockClient_ImagePull_Call) Return

func (*MockClient_ImagePull_Call) Run

func (*MockClient_ImagePull_Call) RunAndReturn

type MockClient_ImagePush_Call

type MockClient_ImagePush_Call struct {
	*mock.Call
}

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

func (*MockClient_ImagePush_Call) Return

func (*MockClient_ImagePush_Call) Run

func (*MockClient_ImagePush_Call) RunAndReturn

type MockClient_ImageRemove_Call

type MockClient_ImageRemove_Call struct {
	*mock.Call
}

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

func (*MockClient_ImageRemove_Call) Return

func (*MockClient_ImageRemove_Call) Run

func (*MockClient_ImageRemove_Call) RunAndReturn

type MockClient_ImageSave_Call

type MockClient_ImageSave_Call struct {
	*mock.Call
}

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

func (*MockClient_ImageSave_Call) Return

func (*MockClient_ImageSave_Call) Run

func (*MockClient_ImageSave_Call) RunAndReturn

type MockClient_ImageTag_Call

type MockClient_ImageTag_Call struct {
	*mock.Call
}

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

func (*MockClient_ImageTag_Call) Return

func (*MockClient_ImageTag_Call) Run

func (*MockClient_ImageTag_Call) RunAndReturn

type MockClient_Info_Call

type MockClient_Info_Call struct {
	*mock.Call
}

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

func (*MockClient_Info_Call) Return

func (_c *MockClient_Info_Call) Return(systemInfoResult client.SystemInfoResult, err error) *MockClient_Info_Call

func (*MockClient_Info_Call) Run

func (*MockClient_Info_Call) RunAndReturn

type MockClient_ServerVersion_Call

type MockClient_ServerVersion_Call struct {
	*mock.Call
}

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

func (*MockClient_ServerVersion_Call) Return

func (*MockClient_ServerVersion_Call) Run

func (*MockClient_ServerVersion_Call) RunAndReturn

Jump to

Keyboard shortcuts

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