client

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 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 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) ContainerCreate

func (_m *MockClient) 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 (*MockClient) ContainerInspect

func (_m *MockClient) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error)

ContainerInspect provides a mock function with given fields: ctx, containerID

func (*MockClient) ContainerLogs

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

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

func (*MockClient) ContainerRemove

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

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

func (*MockClient) ContainerStart

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

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

func (*MockClient) ContainerStop

func (_m *MockClient) ContainerStop(ctx context.Context, containerID string, options container.StopOptions) error

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

func (*MockClient) ContainerWait

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

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

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *MockClient_Expecter

func (*MockClient) ImagePull

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

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

func (*MockClient) NetworkCreate

func (_m *MockClient) NetworkCreate(ctx context.Context, name string, options network.CreateOptions) (network.CreateResponse, error)

NetworkCreate provides a mock function with given fields: ctx, name, options

func (*MockClient) NetworkRemove

func (_m *MockClient) NetworkRemove(ctx context.Context, networkID string) error

NetworkRemove provides a mock function with given fields: ctx, networkID

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 (_c *MockClient_ContainerCreate_Call) Run(run func(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *v1.Platform, containerName string)) *MockClient_ContainerCreate_Call

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_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_ContainerWait_Call

type MockClient_ContainerWait_Call struct {
	*mock.Call
}

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

func (*MockClient_ContainerWait_Call) Return

func (*MockClient_ContainerWait_Call) Run

func (*MockClient_ContainerWait_Call) RunAndReturn

type MockClient_Expecter

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

func (*MockClient_Expecter) ContainerCreate

func (_e *MockClient_Expecter) ContainerCreate(ctx interface{}, config interface{}, hostConfig interface{}, networkingConfig interface{}, platform interface{}, containerName interface{}) *MockClient_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 (*MockClient_Expecter) ContainerInspect

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

ContainerInspect is a helper method to define mock.On call

  • ctx context.Context
  • containerID string

func (*MockClient_Expecter) ContainerLogs

func (_e *MockClient_Expecter) ContainerLogs(ctx interface{}, _a1 interface{}, options interface{}) *MockClient_ContainerLogs_Call

ContainerLogs is a helper method to define mock.On call

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

func (*MockClient_Expecter) ContainerRemove

func (_e *MockClient_Expecter) ContainerRemove(ctx interface{}, containerID interface{}, options interface{}) *MockClient_ContainerRemove_Call

ContainerRemove is a helper method to define mock.On call

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

func (*MockClient_Expecter) ContainerStart

func (_e *MockClient_Expecter) ContainerStart(ctx interface{}, containerID interface{}, options interface{}) *MockClient_ContainerStart_Call

ContainerStart is a helper method to define mock.On call

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

func (*MockClient_Expecter) ContainerStop

func (_e *MockClient_Expecter) ContainerStop(ctx interface{}, containerID interface{}, options interface{}) *MockClient_ContainerStop_Call

ContainerStop is a helper method to define mock.On call

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

func (*MockClient_Expecter) ContainerWait

func (_e *MockClient_Expecter) ContainerWait(ctx interface{}, containerID interface{}, condition interface{}) *MockClient_ContainerWait_Call

ContainerWait is a helper method to define mock.On call

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

func (*MockClient_Expecter) ImagePull

func (_e *MockClient_Expecter) ImagePull(ctx interface{}, refStr interface{}, options interface{}) *MockClient_ImagePull_Call

ImagePull is a helper method to define mock.On call

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

func (*MockClient_Expecter) NetworkCreate

func (_e *MockClient_Expecter) NetworkCreate(ctx interface{}, name interface{}, options interface{}) *MockClient_NetworkCreate_Call

NetworkCreate is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • options network.CreateOptions

func (*MockClient_Expecter) NetworkRemove

func (_e *MockClient_Expecter) NetworkRemove(ctx interface{}, networkID interface{}) *MockClient_NetworkRemove_Call

NetworkRemove is a helper method to define mock.On call

  • ctx context.Context
  • networkID string

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_NetworkCreate_Call

type MockClient_NetworkCreate_Call struct {
	*mock.Call
}

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

func (*MockClient_NetworkCreate_Call) Return

func (*MockClient_NetworkCreate_Call) Run

func (*MockClient_NetworkCreate_Call) RunAndReturn

type MockClient_NetworkRemove_Call

type MockClient_NetworkRemove_Call struct {
	*mock.Call
}

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

func (*MockClient_NetworkRemove_Call) Return

func (*MockClient_NetworkRemove_Call) Run

func (*MockClient_NetworkRemove_Call) RunAndReturn

type MockMaker

type MockMaker struct {
	mock.Mock
}

MockMaker is an autogenerated mock type for the Maker type

func NewMockMaker

func NewMockMaker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMaker

NewMockMaker creates a new instance of MockMaker. 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 (*MockMaker) EXPECT

func (_m *MockMaker) EXPECT() *MockMaker_Expecter

func (*MockMaker) Make

func (_m *MockMaker) Make() (client.Client, error)

Make provides a mock function with given fields:

type MockMaker_Expecter

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

func (*MockMaker_Expecter) Make

Make is a helper method to define mock.On call

type MockMaker_Make_Call

type MockMaker_Make_Call struct {
	*mock.Call
}

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

func (*MockMaker_Make_Call) Return

func (*MockMaker_Make_Call) Run

func (_c *MockMaker_Make_Call) Run(run func()) *MockMaker_Make_Call

func (*MockMaker_Make_Call) RunAndReturn

func (_c *MockMaker_Make_Call) RunAndReturn(run func() (client.Client, error)) *MockMaker_Make_Call

Jump to

Keyboard shortcuts

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