Documentation ¶
Index ¶
- type ContainerAPIClientMock
- func (client *ContainerAPIClientMock) ContainerInspect(ctx context.Context, container string) (types.ContainerJSON, error)
- func (client *ContainerAPIClientMock) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error)
- func (client *ContainerAPIClientMock) ContainerStart(ctx context.Context, container string, options types.ContainerStartOptions) error
- func (client *ContainerAPIClientMock) ContainerStop(ctx context.Context, container string, timeout *time.Duration) error
- type ServiceAPIClientMock
- func (client *ServiceAPIClientMock) ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error)
- func (client *ServiceAPIClientMock) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, ...) (types.ServiceUpdateResponse, error)
- func (client *ServiceAPIClientMock) TaskList(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error)
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 ¶
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)
Click to show internal directories.
Click to hide internal directories.