mocks

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerClient

type ContainerClient struct {
	mock.Mock
}

ContainerClient is an autogenerated mock type for the Client type

func NewContainerClient

func NewContainerClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContainerClient

NewContainerClient creates a new instance of ContainerClient. 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 (*ContainerClient) Compatible

func (_m *ContainerClient) Compatible(_a0 context.Context) (bool, error)

Compatible provides a mock function with given fields: _a0

func (*ContainerClient) ContainerExists

func (_m *ContainerClient) ContainerExists(_a0 context.Context, _a1 string) (bool, error)

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

func (*ContainerClient) Create

func (_m *ContainerClient) Create(_a0 context.Context, _a1 container.Config) (string, error)

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

func (*ContainerClient) EXPECT

func (*ContainerClient) ImageExists

func (_m *ContainerClient) ImageExists(_a0 context.Context, _a1 string) (bool, error)

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

func (*ContainerClient) Logs

func (_m *ContainerClient) Logs(_a0 context.Context, _a1 string) (string, string, error)

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

func (*ContainerClient) PullImage

func (_m *ContainerClient) PullImage(_a0 context.Context, _a1 string) error

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

func (*ContainerClient) Remove

func (_m *ContainerClient) Remove(_a0 context.Context, _a1 string) error

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

func (*ContainerClient) Start

func (_m *ContainerClient) Start(_a0 context.Context, _a1 string) error

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

func (*ContainerClient) Stop

func (_m *ContainerClient) Stop(_a0 context.Context, _a1 string) error

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

func (*ContainerClient) Wait

func (_m *ContainerClient) Wait(_a0 context.Context, _a1 string) (int, string, error)

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

type ContainerClient_Compatible_Call

type ContainerClient_Compatible_Call struct {
	*mock.Call
}

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

func (*ContainerClient_Compatible_Call) Return

func (*ContainerClient_Compatible_Call) Run

func (*ContainerClient_Compatible_Call) RunAndReturn

type ContainerClient_ContainerExists_Call

type ContainerClient_ContainerExists_Call struct {
	*mock.Call
}

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

func (*ContainerClient_ContainerExists_Call) Return

func (*ContainerClient_ContainerExists_Call) Run

func (*ContainerClient_ContainerExists_Call) RunAndReturn

type ContainerClient_Create_Call

type ContainerClient_Create_Call struct {
	*mock.Call
}

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

func (*ContainerClient_Create_Call) Return

func (*ContainerClient_Create_Call) Run

func (*ContainerClient_Create_Call) RunAndReturn

type ContainerClient_Expecter

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

func (*ContainerClient_Expecter) Compatible

func (_e *ContainerClient_Expecter) Compatible(_a0 interface{}) *ContainerClient_Compatible_Call

Compatible is a helper method to define mock.On call

  • _a0 context.Context

func (*ContainerClient_Expecter) ContainerExists

func (_e *ContainerClient_Expecter) ContainerExists(_a0 interface{}, _a1 interface{}) *ContainerClient_ContainerExists_Call

ContainerExists is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ContainerClient_Expecter) Create

func (_e *ContainerClient_Expecter) Create(_a0 interface{}, _a1 interface{}) *ContainerClient_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 container.Config

func (*ContainerClient_Expecter) ImageExists

func (_e *ContainerClient_Expecter) ImageExists(_a0 interface{}, _a1 interface{}) *ContainerClient_ImageExists_Call

ImageExists is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ContainerClient_Expecter) Logs

func (_e *ContainerClient_Expecter) Logs(_a0 interface{}, _a1 interface{}) *ContainerClient_Logs_Call

Logs is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ContainerClient_Expecter) PullImage

func (_e *ContainerClient_Expecter) PullImage(_a0 interface{}, _a1 interface{}) *ContainerClient_PullImage_Call

PullImage is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ContainerClient_Expecter) Remove

func (_e *ContainerClient_Expecter) Remove(_a0 interface{}, _a1 interface{}) *ContainerClient_Remove_Call

Remove is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ContainerClient_Expecter) Start

func (_e *ContainerClient_Expecter) Start(_a0 interface{}, _a1 interface{}) *ContainerClient_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ContainerClient_Expecter) Stop

func (_e *ContainerClient_Expecter) Stop(_a0 interface{}, _a1 interface{}) *ContainerClient_Stop_Call

Stop is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

func (*ContainerClient_Expecter) Wait

func (_e *ContainerClient_Expecter) Wait(_a0 interface{}, _a1 interface{}) *ContainerClient_Wait_Call

Wait is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

type ContainerClient_ImageExists_Call

type ContainerClient_ImageExists_Call struct {
	*mock.Call
}

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

func (*ContainerClient_ImageExists_Call) Return

func (*ContainerClient_ImageExists_Call) Run

func (*ContainerClient_ImageExists_Call) RunAndReturn

type ContainerClient_Logs_Call

type ContainerClient_Logs_Call struct {
	*mock.Call
}

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

func (*ContainerClient_Logs_Call) Return

func (*ContainerClient_Logs_Call) Run

func (*ContainerClient_Logs_Call) RunAndReturn

type ContainerClient_PullImage_Call

type ContainerClient_PullImage_Call struct {
	*mock.Call
}

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

func (*ContainerClient_PullImage_Call) Return

func (*ContainerClient_PullImage_Call) Run

func (*ContainerClient_PullImage_Call) RunAndReturn

type ContainerClient_Remove_Call

type ContainerClient_Remove_Call struct {
	*mock.Call
}

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

func (*ContainerClient_Remove_Call) Return

func (*ContainerClient_Remove_Call) Run

func (*ContainerClient_Remove_Call) RunAndReturn

type ContainerClient_Start_Call

type ContainerClient_Start_Call struct {
	*mock.Call
}

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

func (*ContainerClient_Start_Call) Return

func (*ContainerClient_Start_Call) Run

func (*ContainerClient_Start_Call) RunAndReturn

type ContainerClient_Stop_Call

type ContainerClient_Stop_Call struct {
	*mock.Call
}

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

func (*ContainerClient_Stop_Call) Return

func (*ContainerClient_Stop_Call) Run

func (*ContainerClient_Stop_Call) RunAndReturn

type ContainerClient_Wait_Call

type ContainerClient_Wait_Call struct {
	*mock.Call
}

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

func (*ContainerClient_Wait_Call) Return

func (*ContainerClient_Wait_Call) Run

func (*ContainerClient_Wait_Call) RunAndReturn

type ContainerMemory

type ContainerMemory struct {
	mock.Mock
}

ContainerMemory is an autogenerated mock type for the Memory type

func NewContainerMemory

func NewContainerMemory(t interface {
	mock.TestingT
	Cleanup(func())
}) *ContainerMemory

NewContainerMemory creates a new instance of ContainerMemory. 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 (*ContainerMemory) AddID

func (_m *ContainerMemory) AddID(_a0 string) error

AddID provides a mock function with given fields: _a0

func (*ContainerMemory) EXPECT

func (*ContainerMemory) RemoveID

func (_m *ContainerMemory) RemoveID(_a0 string) error

RemoveID provides a mock function with given fields: _a0

type ContainerMemory_AddID_Call

type ContainerMemory_AddID_Call struct {
	*mock.Call
}

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

func (*ContainerMemory_AddID_Call) Return

func (*ContainerMemory_AddID_Call) Run

func (*ContainerMemory_AddID_Call) RunAndReturn

type ContainerMemory_Expecter

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

func (*ContainerMemory_Expecter) AddID

func (_e *ContainerMemory_Expecter) AddID(_a0 interface{}) *ContainerMemory_AddID_Call

AddID is a helper method to define mock.On call

  • _a0 string

func (*ContainerMemory_Expecter) RemoveID

func (_e *ContainerMemory_Expecter) RemoveID(_a0 interface{}) *ContainerMemory_RemoveID_Call

RemoveID is a helper method to define mock.On call

  • _a0 string

type ContainerMemory_RemoveID_Call

type ContainerMemory_RemoveID_Call struct {
	*mock.Call
}

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

func (*ContainerMemory_RemoveID_Call) Return

func (*ContainerMemory_RemoveID_Call) Run

func (*ContainerMemory_RemoveID_Call) RunAndReturn

type StateCleaner

type StateCleaner struct {
	mock.Mock
}

StateCleaner is an autogenerated mock type for the Cleaner type

func NewStateCleaner

func NewStateCleaner(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateCleaner

NewStateCleaner creates a new instance of StateCleaner. 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 (*StateCleaner) CleanUp

func (_m *StateCleaner) CleanUp(_a0 context.Context, _a1 string) error

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

func (*StateCleaner) EXPECT

func (_m *StateCleaner) EXPECT() *StateCleaner_Expecter

type StateCleaner_CleanUp_Call

type StateCleaner_CleanUp_Call struct {
	*mock.Call
}

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

func (*StateCleaner_CleanUp_Call) Return

func (*StateCleaner_CleanUp_Call) Run

func (*StateCleaner_CleanUp_Call) RunAndReturn

type StateCleaner_Expecter

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

func (*StateCleaner_Expecter) CleanUp

func (_e *StateCleaner_Expecter) CleanUp(_a0 interface{}, _a1 interface{}) *StateCleaner_CleanUp_Call

CleanUp is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 string

Jump to

Keyboard shortcuts

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