mocks

package
v2.1.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerAPIClientMock

type ContainerAPIClientMock struct {
	client.ContainerAPIClient
	mock.Mock
}

func NewContainerAPIClientMock

func NewContainerAPIClientMock() *ContainerAPIClientMock

func (*ContainerAPIClientMock) ContainerInspect

func (client *ContainerAPIClientMock) ContainerInspect(ctx context.Context, container string) (types.ContainerJSON, error)

func (*ContainerAPIClientMock) ContainerList

func (client *ContainerAPIClientMock) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)

func (*ContainerAPIClientMock) ContainerStart

func (client *ContainerAPIClientMock) ContainerStart(ctx context.Context, container string, options types.ContainerStartOptions) error

func (*ContainerAPIClientMock) ContainerStop

func (client *ContainerAPIClientMock) ContainerStop(ctx context.Context, container string, timeout *time.Duration) error

type ServiceAPIClientMock

type ServiceAPIClientMock struct {
	client.ServiceAPIClient
	mock.Mock
}

func NewServiceAPIClientMock

func NewServiceAPIClientMock() *ServiceAPIClientMock

func (*ServiceAPIClientMock) ServiceList

func (client *ServiceAPIClientMock) ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error)

func (*ServiceAPIClientMock) ServiceUpdate

func (client *ServiceAPIClientMock) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, service swarm.ServiceSpec, options types.ServiceUpdateOptions) (types.ServiceUpdateResponse, error)

func (*ServiceAPIClientMock) TaskList

func (client *ServiceAPIClientMock) TaskList(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error)

Jump to

Keyboard shortcuts

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