Versions in this module Expand all Collapse all v1 v1.0.0 Feb 20, 2018 Changes in this version + const DefaultDockerRegistry + var HomeDirectory = homedir.Get() + func EncodeAuthConfig(authConfig *types.AuthConfig) (string, error) + func IsErrNotFound(err error) bool + func ReadAuthConfigsFromReader(r io.Reader) (map[string]types.AuthConfig, error) + func ReadDockerAuthConfigsFromHomeDir(userName string) (map[string]types.AuthConfig, error) + func ResolveDockerAuthConfig(indexName string, configs map[string]types.AuthConfig) *types.AuthConfig + func SplitDockerImageName(reposName string) (string, string) + type Client interface + Close func() error + ContainerAttach func(ctx context.Context, container string, options types.ContainerAttachOptions) (types.HijackedResponse, error) + ContainerCreate func(ctx context.Context, config *container.Config, ...) (container.ContainerCreateCreatedBody, error) + ContainerInspect func(ctx context.Context, containerID string) (types.ContainerJSON, error) + ContainerKill func(ctx context.Context, containerID, signal string) error + ContainerLogs func(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error) + ContainerRemove func(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error + ContainerStart func(ctx context.Context, containerID string, options types.ContainerStartOptions) error + ContainerWait func(ctx context.Context, containerID string) (int64, error) + ImageImportBlocking func(ctx context.Context, source types.ImageImportSource, ref string, ...) error + ImageInspectWithRaw func(ctx context.Context, imageID string) (types.ImageInspect, []byte, error) + ImagePullBlocking func(ctx context.Context, ref string, options types.ImagePullOptions) error + Info func(ctx context.Context) (types.Info, error) + NetworkDisconnect func(ctx context.Context, networkID, containerID string, force bool) error + NetworkList func(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) + func New(c DockerCredentials, apiVersion string) (Client, error) + type DockerCredentials struct + CertPath string + Host string + TLSVerify bool + type Machine interface + CanConnect func(name string) bool + Create func(driver, name string, opts ...string) error + Credentials func(name string) (DockerCredentials, error) + Exist func(name string) bool + List func() (machines []string, err error) + Provision func(name string) error + Remove func(name string) error + Stop func(name string, timeout time.Duration) error + func NewMachineCommand() Machine + type MockClient struct + func (_m *MockClient) Close() error + func (_m *MockClient) ContainerAttach(ctx context.Context, _a1 string, options types.ContainerAttachOptions) (types.HijackedResponse, error) + func (_m *MockClient) ContainerCreate(ctx context.Context, config *container.Config, ...) (container.ContainerCreateCreatedBody, error) + func (_m *MockClient) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error) + func (_m *MockClient) ContainerKill(ctx context.Context, containerID string, signal string) error + func (_m *MockClient) ContainerLogs(ctx context.Context, _a1 string, options types.ContainerLogsOptions) (io.ReadCloser, error) + func (_m *MockClient) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error + func (_m *MockClient) ContainerStart(ctx context.Context, containerID string, options types.ContainerStartOptions) error + func (_m *MockClient) ContainerWait(ctx context.Context, containerID string) (int64, error) + func (_m *MockClient) ImageImportBlocking(ctx context.Context, source types.ImageImportSource, ref string, ...) error + func (_m *MockClient) ImageInspectWithRaw(ctx context.Context, imageID string) (types.ImageInspect, []byte, error) + func (_m *MockClient) ImagePullBlocking(ctx context.Context, ref string, options types.ImagePullOptions) error + func (_m *MockClient) Info(ctx context.Context) (types.Info, error) + func (_m *MockClient) NetworkDisconnect(ctx context.Context, networkID string, containerID string, force bool) error + func (_m *MockClient) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) + type MockMachine struct + func (_m *MockMachine) CanConnect(name string) bool + func (_m *MockMachine) Create(driver string, name string, opts ...string) error + func (_m *MockMachine) Credentials(name string) (DockerCredentials, error) + func (_m *MockMachine) Exist(name string) bool + func (_m *MockMachine) List() ([]string, error) + func (_m *MockMachine) Provision(name string) error + func (_m *MockMachine) Remove(name string) error + func (_m *MockMachine) Stop(name string, timeout time.Duration) error