Versions in this module Expand all Collapse all v0 v0.0.1 Apr 12, 2017 v0.0.0 Apr 12, 2017 Changes in this version + var ErrNoSuchContainer = errors.New("container does not exist") + func NewMock() (*MockClient, Client) + type BuildImageOptions struct + Dockerfile string + Name string + type Client struct + func New(sock string) Client + func (dk Client) Build(name, dockerfile string) (id string, err error) + func (dk Client) ConfigureNetwork(driver string) error + func (dk Client) Get(id string) (Container, error) + func (dk Client) IsRunning(name string) (bool, error) + func (dk Client) List(filters map[string][]string) ([]Container, error) + func (dk Client) Pull(image string) error + func (dk Client) Push(registry, image string) error + func (dk Client) Remove(name string) error + func (dk Client) RemoveID(id string) error + func (dk Client) Run(opts RunOptions) (string, error) + type Container struct + Args []string + Created time.Time + EID string + Env map[string]string + ID string + IP string + Image string + ImageID string + Labels map[string]string + Mac string + Name string + Path string + Pid int + Status string + type ContainerSlice []Container + func (cs ContainerSlice) Get(ii int) interface{} + func (cs ContainerSlice) Len() int + type MockClient struct + BuildError bool + Built map[BuildImageOptions]struct{} + Containers map[string]mockContainer + CreateError bool + CreateExecError bool + CreateNetworkError bool + Executions map[string][]string + Images map[string]*dkc.Image + InspectContainerError bool + InspectImageError bool + ListError bool + ListNetworksError bool + Networks map[string]*dkc.Network + PullError bool + Pulled map[string]struct{} + PushError bool + Pushed map[dkc.PushImageOptions]struct{} + RemoveError bool + StartError bool + StartExecError bool + UploadError bool + Uploads map[UploadToContainerOptions]struct{} + func (dk *MockClient) CreateContainer(opts dkc.CreateContainerOptions) (*dkc.Container, error) + func (dk *MockClient) ResetBuilt() + func (dk *MockClient) ResetExec() + func (dk MockClient) BuildImage(opts dkc.BuildImageOptions) error + func (dk MockClient) CreateExec(opts dkc.CreateExecOptions) (*dkc.Exec, error) + func (dk MockClient) CreateNetwork(opts dkc.CreateNetworkOptions) (*dkc.Network, error) + func (dk MockClient) DownloadFromContainer(id string, opts dkc.DownloadFromContainerOptions) error + func (dk MockClient) InspectContainer(id string) (*dkc.Container, error) + func (dk MockClient) InspectImage(name string) (*dkc.Image, error) + func (dk MockClient) ListContainers(opts dkc.ListContainersOptions) ([]dkc.APIContainers, error) + func (dk MockClient) ListNetworks() ([]dkc.Network, error) + func (dk MockClient) PullImage(opts dkc.PullImageOptions, auth dkc.AuthConfiguration) error + func (dk MockClient) PushImage(opts dkc.PushImageOptions, _ dkc.AuthConfiguration) error + func (dk MockClient) RemoveContainer(opts dkc.RemoveContainerOptions) error + func (dk MockClient) StartContainer(id string, hostConfig *dkc.HostConfig) error + func (dk MockClient) StartExec(id string, opts dkc.StartExecOptions) error + func (dk MockClient) StopContainer(id string) + func (dk MockClient) UploadToContainer(id string, opts dkc.UploadToContainerOptions) error + type RunOptions struct + Args []string + DNS []string + DNSSearch []string + Env map[string]string + FilepathToContent map[string]string + IP string + Image string + Labels map[string]string + Name string + NetworkMode string + PidMode string + Privileged bool + VolumesFrom []string + type UploadToContainerOptions struct + ContainerID string + Contents string + TarPath string + UploadPath string