mocks

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: AGPL-3.0-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerClient added in v0.0.15

type ContainerClient struct {
	mock.Mock
}

ContainerClient is an autogenerated mock type for the ContainerClient type

func NewContainerClient added in v0.0.15

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) ContainersWithLabels added in v0.0.15

func (_m *ContainerClient) ContainersWithLabels(_a0 map[string]string) container.LabelOptions

ContainersWithLabels provides a mock function with given fields: _a0

func (*ContainerClient) EXPECT added in v0.0.15

func (*ContainerClient) HasDockerNetwork added in v0.0.15

func (_m *ContainerClient) HasDockerNetwork() bool

HasDockerNetwork provides a mock function with no fields

func (*ContainerClient) RemoveContainers added in v0.0.15

func (_m *ContainerClient) RemoveContainers(_a0 context.Context, _a1 container.LabelOptions) error

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

func (*ContainerClient) RunContainer added in v0.0.15

func (_m *ContainerClient) RunContainer(_a0 context.Context, _a1 container.RunContainerParams) (<-chan domain.Container, <-chan error)

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

type ContainerClient_ContainersWithLabels_Call added in v0.0.15

type ContainerClient_ContainersWithLabels_Call struct {
	*mock.Call
}

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

func (*ContainerClient_ContainersWithLabels_Call) Return added in v0.0.15

func (*ContainerClient_ContainersWithLabels_Call) Run added in v0.0.15

func (*ContainerClient_ContainersWithLabels_Call) RunAndReturn added in v0.0.15

type ContainerClient_Expecter added in v0.0.15

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

func (*ContainerClient_Expecter) ContainersWithLabels added in v0.0.15

func (_e *ContainerClient_Expecter) ContainersWithLabels(_a0 interface{}) *ContainerClient_ContainersWithLabels_Call

ContainersWithLabels is a helper method to define mock.On call

  • _a0 map[string]string

func (*ContainerClient_Expecter) HasDockerNetwork added in v0.0.15

HasDockerNetwork is a helper method to define mock.On call

func (*ContainerClient_Expecter) RemoveContainers added in v0.0.15

func (_e *ContainerClient_Expecter) RemoveContainers(_a0 interface{}, _a1 interface{}) *ContainerClient_RemoveContainers_Call

RemoveContainers is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 container.LabelOptions

func (*ContainerClient_Expecter) RunContainer added in v0.0.15

func (_e *ContainerClient_Expecter) RunContainer(_a0 interface{}, _a1 interface{}) *ContainerClient_RunContainer_Call

RunContainer is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 container.RunContainerParams

type ContainerClient_HasDockerNetwork_Call added in v0.0.15

type ContainerClient_HasDockerNetwork_Call struct {
	*mock.Call
}

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

func (*ContainerClient_HasDockerNetwork_Call) Return added in v0.0.15

func (*ContainerClient_HasDockerNetwork_Call) Run added in v0.0.15

func (*ContainerClient_HasDockerNetwork_Call) RunAndReturn added in v0.0.15

type ContainerClient_RemoveContainers_Call added in v0.0.15

type ContainerClient_RemoveContainers_Call struct {
	*mock.Call
}

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

func (*ContainerClient_RemoveContainers_Call) Return added in v0.0.15

func (*ContainerClient_RemoveContainers_Call) Run added in v0.0.15

func (*ContainerClient_RemoveContainers_Call) RunAndReturn added in v0.0.15

type ContainerClient_RunContainer_Call added in v0.0.15

type ContainerClient_RunContainer_Call struct {
	*mock.Call
}

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

func (*ContainerClient_RunContainer_Call) Return added in v0.0.15

func (*ContainerClient_RunContainer_Call) Run added in v0.0.15

func (*ContainerClient_RunContainer_Call) RunAndReturn added in v0.0.15

type HTTPClient

type HTTPClient struct {
	mock.Mock
}

HTTPClient is an autogenerated mock type for the httpClient type

func NewHTTPClient

func NewHTTPClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *HTTPClient

NewHTTPClient creates a new instance of HTTPClient. 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 (*HTTPClient) Do

func (_m *HTTPClient) Do(_a0 *http.Request) (*http.Response, error)

Do provides a mock function with given fields: _a0

func (*HTTPClient) EXPECT

func (_m *HTTPClient) EXPECT() *HTTPClient_Expecter

type HTTPClient_Do_Call

type HTTPClient_Do_Call struct {
	*mock.Call
}

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

func (*HTTPClient_Do_Call) Return

func (_c *HTTPClient_Do_Call) Return(_a0 *http.Response, _a1 error) *HTTPClient_Do_Call

func (*HTTPClient_Do_Call) Run

func (_c *HTTPClient_Do_Call) Run(run func(_a0 *http.Request)) *HTTPClient_Do_Call

func (*HTTPClient_Do_Call) RunAndReturn

func (_c *HTTPClient_Do_Call) RunAndReturn(run func(*http.Request) (*http.Response, error)) *HTTPClient_Do_Call

type HTTPClient_Expecter

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

func (*HTTPClient_Expecter) Do

func (_e *HTTPClient_Expecter) Do(_a0 interface{}) *HTTPClient_Do_Call

Do is a helper method to define mock.On call

  • _a0 *http.Request

Jump to

Keyboard shortcuts

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