Versions in this module Expand all Collapse all v1 v1.5.1 Apr 11, 2015 v1.5.1-kubernetes Apr 15, 2015 v1.5.0 Apr 7, 2015 v1.4.1 Mar 6, 2015 v1.4.0 Mar 3, 2015 v1.3.1 Feb 5, 2015 v1.3.0 Feb 2, 2015 v1.2.2 Jan 20, 2015 v1.2.1 Jan 14, 2015 v1.2.0 Jan 9, 2015 Changes in this version + const SIGABRT + const SIGALRM + const SIGBUS + const SIGCHLD + const SIGCLD + const SIGCONT + const SIGFPE + const SIGHUP + const SIGILL + const SIGINT + const SIGIO + const SIGIOT + const SIGKILL + const SIGPIPE + const SIGPOLL + const SIGPROF + const SIGPWR + const SIGQUIT + const SIGSEGV + const SIGSTKFLT + const SIGSTOP + const SIGSYS + const SIGTERM + const SIGTRAP + const SIGTSTP + const SIGTTIN + const SIGTTOU + const SIGUNUSED + const SIGURG + const SIGUSR1 + const SIGUSR2 + const SIGVTALRM + const SIGWINCH + const SIGXCPU + const SIGXFSZ + var ErrConnectionRefused = errors.New("cannot connect to Docker endpoint") + var ErrInvalidEndpoint = errors.New("invalid endpoint") + var ErrListenerAlreadyExists = errors.New("listener already exists for docker events") + var ErrMissingOutputStream = errors.New("missing output stream") + var ErrMissingRepo = errors.New("missing remote repository e.g. 'github.com/user/repo'") + var ErrNoListeners = errors.New("no listeners present to receive event") + var ErrNoSuchImage = errors.New("no such image") + func ParseRepositoryTag(repoTag string) (repository string, tag string) + type APIContainers struct + Command string + Created int64 + ID string + Image string + Names []string + Ports []APIPort + SizeRootFs int64 + SizeRw int64 + Status string + type APIEvents struct + From string + ID string + Status string + Time int64 + type APIImageSearch struct + Description string + IsAutomated bool + IsOfficial bool + Name string + StarCount int + type APIImages struct + Created int64 + ID string + ParentId string + RepoTags []string + Size int64 + VirtualSize int64 + type APIPort struct + IP string + PrivatePort int64 + PublicPort int64 + Type string + type ApiVersion []int + func NewApiVersion(input string) (ApiVersion, error) + func (version ApiVersion) GreaterThan(other ApiVersion) bool + func (version ApiVersion) GreaterThanOrEqualTo(other ApiVersion) bool + func (version ApiVersion) LessThan(other ApiVersion) bool + func (version ApiVersion) LessThanOrEqualTo(other ApiVersion) bool + func (version ApiVersion) String() string + type AttachToContainerOptions struct + Container string + ErrorStream io.Writer + InputStream io.Reader + Logs bool + OutputStream io.Writer + RawTerminal bool + Stderr bool + Stdin bool + Stdout bool + Stream bool + Success chan struct{} + type AuthConfiguration struct + Email string + Password string + Username string + type BuildImageOptions struct + ForceRmTmpContainer bool + InputStream io.Reader + Name string + NoCache bool + OutputStream io.Writer + RawJSONStream bool + Remote string + RmTmpContainer bool + SuppressOutput bool + type Change struct + Kind ChangeType + Path string + func (change *Change) String() string + type ChangeType int + const ChangeAdd + const ChangeDelete + const ChangeModify + type Client struct + HTTPClient *http.Client + SkipServerVersionCheck bool + func NewClient(endpoint string) (*Client, error) + func NewVersionedClient(endpoint string, apiVersionString string) (*Client, error) + func (c *Client) AddEventListener(listener chan<- *APIEvents) error + func (c *Client) AttachToContainer(opts AttachToContainerOptions) error + func (c *Client) BuildImage(opts BuildImageOptions) error + func (c *Client) CommitContainer(opts CommitContainerOptions) (*Image, error) + func (c *Client) ContainerChanges(id string) ([]Change, error) + func (c *Client) CopyFromContainer(opts CopyFromContainerOptions) error + func (c *Client) CreateContainer(opts CreateContainerOptions) (*Container, error) + func (c *Client) CreateExec(opts CreateExecOptions) (*Exec, error) + func (c *Client) ExportContainer(opts ExportContainerOptions) error + func (c *Client) ExportImage(opts ExportImageOptions) error + func (c *Client) ImageHistory(name string) ([]ImageHistory, error) + func (c *Client) ImportImage(opts ImportImageOptions) error + func (c *Client) Info() (*Env, error) + func (c *Client) InspectContainer(id string) (*Container, error) + func (c *Client) InspectImage(name string) (*Image, error) + func (c *Client) KillContainer(opts KillContainerOptions) error + func (c *Client) ListContainers(opts ListContainersOptions) ([]APIContainers, error) + func (c *Client) ListImages(all bool) ([]APIImages, error) + func (c *Client) LoadImage(opts LoadImageOptions) error + func (c *Client) Logs(opts LogsOptions) error + func (c *Client) PauseContainer(id string) error + func (c *Client) Ping() error + func (c *Client) PullImage(opts PullImageOptions, auth AuthConfiguration) error + func (c *Client) PushImage(opts PushImageOptions, auth AuthConfiguration) error + func (c *Client) RemoveContainer(opts RemoveContainerOptions) error + func (c *Client) RemoveEventListener(listener chan *APIEvents) error + func (c *Client) RemoveImage(name string) error + func (c *Client) ResizeContainerTTY(id string, height, width int) error + func (c *Client) ResizeExecTTY(id string, height, width int) error + func (c *Client) RestartContainer(id string, timeout uint) error + func (c *Client) SearchImages(term string) ([]APIImageSearch, error) + func (c *Client) StartContainer(id string, hostConfig *HostConfig) error + func (c *Client) StartExec(id string, opts StartExecOptions) error + func (c *Client) StopContainer(id string, timeout uint) error + func (c *Client) TagImage(name string, opts TagImageOptions) error + func (c *Client) TopContainer(id string, psArgs string) (TopResult, error) + func (c *Client) UnpauseContainer(id string) error + func (c *Client) Version() (*Env, error) + func (c *Client) WaitContainer(id string) (int, error) + type CommitContainerOptions struct + Author string + Container string + Message string + Repository string + Run *Config + Tag string + type Config struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []string + CpuSet string + CpuShares int64 + Dns []string + Domainname string + Entrypoint []string + Env []string + ExposedPorts map[Port]struct{} + Hostname string + Image string + Memory int64 + MemorySwap int64 + NetworkDisabled bool + OpenStdin bool + PortSpecs []string + StdinOnce bool + Tty bool + User string + Volumes map[string]struct{} + VolumesFrom string + WorkingDir string + type Container struct + Args []string + Config *Config + Created time.Time + Driver string + HostConfig *HostConfig + HostnamePath string + HostsPath string + ID string + Image string + Name string + NetworkSettings *NetworkSettings + Path string + ResolvConfPath string + State State + SysInitPath string + Volumes map[string]string + VolumesRW map[string]bool + type ContainerAlreadyRunning struct + ID string + func (err *ContainerAlreadyRunning) Error() string + type ContainerNotRunning struct + ID string + func (err *ContainerNotRunning) Error() string + type CopyFromContainerOptions struct + Container string + OutputStream io.Writer + Resource string + type CreateContainerOptions struct + Config *Config + Name string + type CreateExecOptions struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []string + Container string + Tty bool + type Env []string + func (env *Env) Decode(src io.Reader) error + func (env *Env) Exists(key string) bool + func (env *Env) Get(key string) (value string) + func (env *Env) GetBool(key string) (value bool) + func (env *Env) GetInt(key string) int + func (env *Env) GetInt64(key string) int64 + func (env *Env) GetJSON(key string, iface interface{}) error + func (env *Env) GetList(key string) []string + func (env *Env) Map() map[string]string + func (env *Env) Set(key, value string) + func (env *Env) SetAuto(key string, value interface{}) + func (env *Env) SetBool(key string, value bool) + func (env *Env) SetInt(key string, value int) + func (env *Env) SetInt64(key string, value int64) + func (env *Env) SetJSON(key string, value interface{}) error + func (env *Env) SetList(key string, value []string) error + type Error struct + Message string + Status int + func (e *Error) Error() string + type Exec struct + Id string + type ExportContainerOptions struct + ID string + OutputStream io.Writer + type ExportImageOptions struct + Name string + OutputStream io.Writer + type HostConfig struct + Binds []string + CapAdd []string + CapDrop []string + ContainerIDFile string + Dns []string + DnsSearch []string + ExtraHosts []string + Links []string + LxcConf []KeyValuePair + NetworkMode string + PortBindings map[Port][]PortBinding + Privileged bool + PublishAllPorts bool + RestartPolicy RestartPolicy + VolumesFrom []string + type Image struct + Architecture string + Author string + Comment string + Config *Config + Container string + ContainerConfig Config + Created time.Time + DockerVersion string + ID string + Parent string + Size int64 + type ImageHistory struct + Created int64 + CreatedBy string + ID string + Size int64 + Tags []string + type ImagePre012 struct + Architecture string + Author string + Comment string + Config *Config + Container string + ContainerConfig Config + Created time.Time + DockerVersion string + ID string + Parent string + Size int64 + type ImportImageOptions struct + InputStream io.Reader + OutputStream io.Writer + Repository string + Source string + Tag string + type KeyValuePair struct + Key string + Value string + type KillContainerOptions struct + ID string + Signal Signal + type ListContainersOptions struct + All bool + Before string + Limit int + Since string + Size bool + type LoadImageOptions struct + InputStream io.Reader + type LogsOptions struct + Container string + ErrorStream io.Writer + Follow bool + OutputStream io.Writer + RawTerminal bool + Stderr bool + Stdout bool + Tail string + Timestamps bool + type NetworkSettings struct + Bridge string + Gateway string + IPAddress string + IPPrefixLen int + PortMapping map[string]PortMapping + Ports map[Port][]PortBinding + func (settings *NetworkSettings) PortMappingAPI() []APIPort + type NoSuchContainer struct + ID string + func (err *NoSuchContainer) Error() string + type NoSuchExec struct + ID string + func (err *NoSuchExec) Error() string + type Port string + func (p Port) Port() string + func (p Port) Proto() string + type PortBinding struct + HostIp string + HostPort string + type PortMapping map[string]string + type PullImageOptions struct + OutputStream io.Writer + RawJSONStream bool + Registry string + Repository string + Tag string + type PushImageOptions struct + Name string + OutputStream io.Writer + RawJSONStream bool + Registry string + Tag string + type RemoveContainerOptions struct + Force bool + ID string + RemoveVolumes bool + type RestartPolicy struct + MaximumRetryCount int + Name string + func AlwaysRestart() RestartPolicy + func NeverRestart() RestartPolicy + func RestartOnFailure(maxRetry int) RestartPolicy + type Signal int + type StartExecOptions struct + Detach bool + ErrorStream io.Writer + InputStream io.Reader + OutputStream io.Writer + RawTerminal bool + Success chan struct{} + Tty bool + type State struct + ExitCode int + FinishedAt time.Time + Paused bool + Pid int + Running bool + StartedAt time.Time + func (s *State) String() string + type TagImageOptions struct + Force bool + Repo string + Tag string + type TopResult struct + Processes [][]string + Titles []string