container

package
v0.0.0-...-f0983eb Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2016 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrImageRequired returned if a task is missing the image definition.
	ErrImageRequired = fmt.Errorf("dockerexec: image required")

	// ErrContainerDestroyed returned when a container is prematurely destroyed
	// during a wait call.
	ErrContainerDestroyed = fmt.Errorf("dockerexec: container destroyed")
)

Functions

func NewExecutor

func NewExecutor(client engineapi.APIClient) exec.Executor

NewExecutor returns an executor from the docker client.

Types

type MockAPIClient

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

Mock of APIClient interface

func NewMockAPIClient

func NewMockAPIClient(ctrl *gomock.Controller) *MockAPIClient

func (*MockAPIClient) ClientVersion

func (_m *MockAPIClient) ClientVersion() string

func (*MockAPIClient) ContainerAttach

func (_m *MockAPIClient) ContainerAttach(_param0 context.Context, _param1 string, _param2 types.ContainerAttachOptions) (types.HijackedResponse, error)

func (*MockAPIClient) ContainerCommit

func (_m *MockAPIClient) ContainerCommit(_param0 context.Context, _param1 string, _param2 types.ContainerCommitOptions) (types.ContainerCommitResponse, error)

func (*MockAPIClient) ContainerCreate

func (_m *MockAPIClient) ContainerCreate(_param0 context.Context, _param1 *container.Config, _param2 *container.HostConfig, _param3 *network.NetworkingConfig, _param4 string) (types.ContainerCreateResponse, error)

func (*MockAPIClient) ContainerDiff

func (_m *MockAPIClient) ContainerDiff(_param0 context.Context, _param1 string) ([]types.ContainerChange, error)

func (*MockAPIClient) ContainerExecAttach

func (_m *MockAPIClient) ContainerExecAttach(_param0 context.Context, _param1 string, _param2 types.ExecConfig) (types.HijackedResponse, error)

func (*MockAPIClient) ContainerExecCreate

func (_m *MockAPIClient) ContainerExecCreate(_param0 context.Context, _param1 string, _param2 types.ExecConfig) (types.ContainerExecCreateResponse, error)

func (*MockAPIClient) ContainerExecInspect

func (_m *MockAPIClient) ContainerExecInspect(_param0 context.Context, _param1 string) (types.ContainerExecInspect, error)

func (*MockAPIClient) ContainerExecResize

func (_m *MockAPIClient) ContainerExecResize(_param0 context.Context, _param1 string, _param2 types.ResizeOptions) error

func (*MockAPIClient) ContainerExecStart

func (_m *MockAPIClient) ContainerExecStart(_param0 context.Context, _param1 string, _param2 types.ExecStartCheck) error

func (*MockAPIClient) ContainerExport

func (_m *MockAPIClient) ContainerExport(_param0 context.Context, _param1 string) (io.ReadCloser, error)

func (*MockAPIClient) ContainerInspect

func (_m *MockAPIClient) ContainerInspect(_param0 context.Context, _param1 string) (types.ContainerJSON, error)

func (*MockAPIClient) ContainerInspectWithRaw

func (_m *MockAPIClient) ContainerInspectWithRaw(_param0 context.Context, _param1 string, _param2 bool) (types.ContainerJSON, []byte, error)

func (*MockAPIClient) ContainerKill

func (_m *MockAPIClient) ContainerKill(_param0 context.Context, _param1 string, _param2 string) error

func (*MockAPIClient) ContainerList

func (_m *MockAPIClient) ContainerList(_param0 context.Context, _param1 types.ContainerListOptions) ([]types.Container, error)

func (*MockAPIClient) ContainerLogs

func (_m *MockAPIClient) ContainerLogs(_param0 context.Context, _param1 string, _param2 types.ContainerLogsOptions) (io.ReadCloser, error)

func (*MockAPIClient) ContainerPause

func (_m *MockAPIClient) ContainerPause(_param0 context.Context, _param1 string) error

func (*MockAPIClient) ContainerRemove

func (_m *MockAPIClient) ContainerRemove(_param0 context.Context, _param1 string, _param2 types.ContainerRemoveOptions) error

func (*MockAPIClient) ContainerRename

func (_m *MockAPIClient) ContainerRename(_param0 context.Context, _param1 string, _param2 string) error

func (*MockAPIClient) ContainerResize

func (_m *MockAPIClient) ContainerResize(_param0 context.Context, _param1 string, _param2 types.ResizeOptions) error

func (*MockAPIClient) ContainerRestart

func (_m *MockAPIClient) ContainerRestart(_param0 context.Context, _param1 string, _param2 int) error

func (*MockAPIClient) ContainerStart

func (_m *MockAPIClient) ContainerStart(_param0 context.Context, _param1 string) error

func (*MockAPIClient) ContainerStatPath

func (_m *MockAPIClient) ContainerStatPath(_param0 context.Context, _param1 string, _param2 string) (types.ContainerPathStat, error)

func (*MockAPIClient) ContainerStats

func (_m *MockAPIClient) ContainerStats(_param0 context.Context, _param1 string, _param2 bool) (io.ReadCloser, error)

func (*MockAPIClient) ContainerStop

func (_m *MockAPIClient) ContainerStop(_param0 context.Context, _param1 string, _param2 int) error

func (*MockAPIClient) ContainerTop

func (_m *MockAPIClient) ContainerTop(_param0 context.Context, _param1 string, _param2 []string) (types.ContainerProcessList, error)

func (*MockAPIClient) ContainerUnpause

func (_m *MockAPIClient) ContainerUnpause(_param0 context.Context, _param1 string) error

func (*MockAPIClient) ContainerUpdate

func (_m *MockAPIClient) ContainerUpdate(_param0 context.Context, _param1 string, _param2 container.UpdateConfig) error

func (*MockAPIClient) ContainerWait

func (_m *MockAPIClient) ContainerWait(_param0 context.Context, _param1 string) (int, error)

func (*MockAPIClient) CopyFromContainer

func (_m *MockAPIClient) CopyFromContainer(_param0 context.Context, _param1 string, _param2 string) (io.ReadCloser, types.ContainerPathStat, error)

func (*MockAPIClient) CopyToContainer

func (_m *MockAPIClient) CopyToContainer(_param0 context.Context, _param1 string, _param2 string, _param3 io.Reader, _param4 types.CopyToContainerOptions) error

func (*MockAPIClient) EXPECT

func (_m *MockAPIClient) EXPECT() *_MockAPIClientRecorder

func (*MockAPIClient) Events

func (_m *MockAPIClient) Events(_param0 context.Context, _param1 types.EventsOptions) (io.ReadCloser, error)

func (*MockAPIClient) ImageBuild

func (_m *MockAPIClient) ImageBuild(_param0 context.Context, _param1 io.Reader, _param2 types.ImageBuildOptions) (types.ImageBuildResponse, error)

func (*MockAPIClient) ImageCreate

func (_m *MockAPIClient) ImageCreate(_param0 context.Context, _param1 string, _param2 types.ImageCreateOptions) (io.ReadCloser, error)

func (*MockAPIClient) ImageHistory

func (_m *MockAPIClient) ImageHistory(_param0 context.Context, _param1 string) ([]types.ImageHistory, error)

func (*MockAPIClient) ImageImport

func (_m *MockAPIClient) ImageImport(_param0 context.Context, _param1 types.ImageImportSource, _param2 string, _param3 types.ImageImportOptions) (io.ReadCloser, error)

func (*MockAPIClient) ImageInspectWithRaw

func (_m *MockAPIClient) ImageInspectWithRaw(_param0 context.Context, _param1 string, _param2 bool) (types.ImageInspect, []byte, error)

func (*MockAPIClient) ImageList

func (_m *MockAPIClient) ImageList(_param0 context.Context, _param1 types.ImageListOptions) ([]types.Image, error)

func (*MockAPIClient) ImageLoad

func (_m *MockAPIClient) ImageLoad(_param0 context.Context, _param1 io.Reader, _param2 bool) (types.ImageLoadResponse, error)

func (*MockAPIClient) ImagePull

func (_m *MockAPIClient) ImagePull(_param0 context.Context, _param1 string, _param2 types.ImagePullOptions) (io.ReadCloser, error)

func (*MockAPIClient) ImagePush

func (_m *MockAPIClient) ImagePush(_param0 context.Context, _param1 string, _param2 types.ImagePushOptions) (io.ReadCloser, error)

func (*MockAPIClient) ImageRemove

func (_m *MockAPIClient) ImageRemove(_param0 context.Context, _param1 string, _param2 types.ImageRemoveOptions) ([]types.ImageDelete, error)

func (*MockAPIClient) ImageSave

func (_m *MockAPIClient) ImageSave(_param0 context.Context, _param1 []string) (io.ReadCloser, error)

func (*MockAPIClient) ImageSearch

func (_m *MockAPIClient) ImageSearch(_param0 context.Context, _param1 string, _param2 types.ImageSearchOptions) ([]registry.SearchResult, error)

func (*MockAPIClient) ImageTag

func (_m *MockAPIClient) ImageTag(_param0 context.Context, _param1 string, _param2 string, _param3 types.ImageTagOptions) error

func (*MockAPIClient) Info

func (_m *MockAPIClient) Info(_param0 context.Context) (types.Info, error)

func (*MockAPIClient) NetworkConnect

func (_m *MockAPIClient) NetworkConnect(_param0 context.Context, _param1 string, _param2 string, _param3 *network.EndpointSettings) error

func (*MockAPIClient) NetworkCreate

func (_m *MockAPIClient) NetworkCreate(_param0 context.Context, _param1 string, _param2 types.NetworkCreate) (types.NetworkCreateResponse, error)

func (*MockAPIClient) NetworkDisconnect

func (_m *MockAPIClient) NetworkDisconnect(_param0 context.Context, _param1 string, _param2 string, _param3 bool) error

func (*MockAPIClient) NetworkInspect

func (_m *MockAPIClient) NetworkInspect(_param0 context.Context, _param1 string) (types.NetworkResource, error)

func (*MockAPIClient) NetworkList

func (_m *MockAPIClient) NetworkList(_param0 context.Context, _param1 types.NetworkListOptions) ([]types.NetworkResource, error)

func (*MockAPIClient) NetworkRemove

func (_m *MockAPIClient) NetworkRemove(_param0 context.Context, _param1 string) error

func (*MockAPIClient) RegistryLogin

func (_m *MockAPIClient) RegistryLogin(_param0 context.Context, _param1 types.AuthConfig) (types.AuthResponse, error)

func (*MockAPIClient) ServerVersion

func (_m *MockAPIClient) ServerVersion(_param0 context.Context) (types.Version, error)

func (*MockAPIClient) UpdateClientVersion

func (_m *MockAPIClient) UpdateClientVersion(_param0 string)

func (*MockAPIClient) VolumeCreate

func (_m *MockAPIClient) VolumeCreate(_param0 context.Context, _param1 types.VolumeCreateRequest) (types.Volume, error)

func (*MockAPIClient) VolumeInspect

func (_m *MockAPIClient) VolumeInspect(_param0 context.Context, _param1 string) (types.Volume, error)

func (*MockAPIClient) VolumeList

func (_m *MockAPIClient) VolumeList(_param0 context.Context, _param1 filters.Args) (types.VolumesListResponse, error)

func (*MockAPIClient) VolumeRemove

func (_m *MockAPIClient) VolumeRemove(_param0 context.Context, _param1 string) error

Jump to

Keyboard shortcuts

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