Versions in this module Expand all Collapse all v0 v0.5.0 Feb 5, 2016 Changes in this version + func Init(mirrors []string, insecureRegistries []string) + type Docker struct + func NewDocker() (*Docker, error) + func (cli *Docker) GetContainerInfo(args ...string) (*types.ContainerJSON, error) + func (cli *Docker) SendCmdDelete(args ...string) ([]byte, int, error) + func (cli *Docker) SendCmdInfo(args ...string) (*types.Info, error) + func (cli Docker) SendCmdAuth(body io.ReadCloser) (string, error) + func (cli Docker) SendCmdCreate(name, image string, entrypoint, cmds []string, userConfig interface{}) ([]byte, int, error) + func (cli Docker) SendCmdImages(all string) ([]*types.Image, error) + func (cli Docker) SendCmdPull(image string, imagePullConfig *graph.ImagePullConfig) ([]byte, int, error) + func (cli Docker) SendCmdPush(remote string, imagePushConfig *graph.ImagePushConfig) error + func (cli Docker) SendContainerCommit(args ...string) ([]byte, int, error) + func (cli Docker) SendContainerRename(oldName, newName string) error + func (cli Docker) SendImageBuild(name string, size int, ctx io.ReadCloser) ([]byte, int, error) + func (cli Docker) SendImageDelete(args ...string) ([]types.ImageDelete, error) + func (cli Docker) Setup() error + func (cli Docker) Shutdown() error v0.2.1 Jul 6, 2015 Changes in this version + func DisplayJSONMessagesStream(in io.Reader, out io.Writer, terminalFd uintptr, isTerminal bool) error + type Config struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []string + CpuShares int64 + Cpuset string + Domainname string + Entrypoint []string + Env []string + Hostname string + Image string + Labels map[string]string + MacAddress string + Memory int64 + MemorySwap int64 + NetworkDisabled bool + OnBuild []string + OpenStdin bool + PortSpecs []string + SecurityOpt []string + StdinOnce bool + Tty bool + User string + Volumes map[string]struct{} + WorkingDir string + type ConfigAndHostConfig struct + HostConfig HostConfig + type ConfigJSON struct + AppArmorProfile string + Args []string + Config TypeConfig + Created string + Driver string + ExecDriver string + ExecIds string + HostConfig struct{} + HostnamePath string + HostsPath string + Id string + Image string + MountLabel string + Name string + NetworkSettings struct{} + Path string + ProcessLabel string + ResolvConfPath string + RestartCount int + State struct{} + Volumes struct{} + VolumesRW struct{} + type DeviceMapping struct + CgroupPermissions string + PathInContainer string + PathOnHost string + type DockerCli struct + func NewDockerCli(keyFile string, proto, addr string, tlsConfig *tls.Config) *DockerCli + func (cli *DockerCli) Call(method, path string, data interface{}, headers map[string][]string) (io.ReadCloser, int, error) + func (cli *DockerCli) ExecDockerCmd(args ...string) ([]byte, int, error) + func (cli *DockerCli) GetContainerInfo(args ...string) (*ConfigJSON, error) + func (cli *DockerCli) HTTPClient() *http.Client + func (cli *DockerCli) SendCmdCreate(args ...string) ([]byte, int, error) + func (cli *DockerCli) SendCmdDelete(args ...string) ([]byte, int, error) + func (cli *DockerCli) SendCmdInfo(args ...string) ([]byte, int, error) + func (cli *DockerCli) SendCmdPull(args ...string) ([]byte, int, error) + func (cli *DockerCli) Stream(method, path string, in io.Reader, stdout io.Writer, ...) error + type DockerConfig struct + type HostConfig struct + Binds []string + CapAdd []string + CapDrop []string + CgroupParent string + ContainerIDFile string + CpuShares int64 + CpusetCpus string + Devices []DeviceMapping + Dns []string + DnsSearch []string + ExtraHosts []string + IpcMode string + Links []string + LogConfig LogConfig + Memory int64 + MemorySwap int64 + NetworkMode string + PidMode string + Privileged bool + PublishAllPorts bool + ReadonlyRootfs bool + RestartPolicy RestartPolicy + SecurityOpt []string + VolumesFrom []string + type JSONError struct + Code int + Message string + func (e *JSONError) Error() string + type JSONMessage struct + Error *JSONError + ErrorMessage string + From string + ID string + Progress *JSONProgress + ProgressMessage string + Status string + Stream string + Time int64 + func (jm *JSONMessage) Display(out io.Writer, isTerminal bool) error + type JSONProgress struct + Current int + Start int64 + Total int + func (p *JSONProgress) String() string + type LogConfig struct + Config map[string]string + Type string + type RestartPolicy struct + MaximumRetryCount int + Name string + type TypeConfig struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []string + CpuShares int64 + Cpuset string + Domainname string + Entrypoint []string + Env []string + ExposedPorts map[string]struct{} + Hostname string + Image string + MacAddress string + Memory int64 + MemorySwap int64 + NetworkDisabled bool + OnBuild []string + OpenStdin bool + PortSpecs []string + StdinOnce bool + Tty bool + User string + Volumes map[string]struct{} + WorkingDir string