Versions in this module Expand all Collapse all v0 v0.4.2-rc1 Dec 2, 2015 v0.4.1 Nov 16, 2015 v0.4.1-rc1 Nov 13, 2015 v0.4.0 Oct 23, 2015 Changes in this version + const APIVersion + var ErrNotFound = errors.New("Not found") + type AuthConfig struct + Email string + Password string + Username string + type BlkioStatEntry struct + Major uint64 + Minor uint64 + Op string + Value uint64 + type BlkioStats struct + IoMergedRecursive []BlkioStatEntry + IoQueuedRecursive []BlkioStatEntry + IoServiceBytesRecursive []BlkioStatEntry + IoServiceTimeRecursive []BlkioStatEntry + IoServicedRecursive []BlkioStatEntry + IoTimeRecursive []BlkioStatEntry + IoWaitTimeRecursive []BlkioStatEntry + SectorsRecursive []BlkioStatEntry + type BuildImage struct + CgroupParent string + Config *ConfigFile + Context io.Reader + CpuPeriod int64 + CpuQuota int64 + CpuSetCpus string + CpuSetMems string + CpuShares int64 + DockerfileName string + ForceRemove bool + Memory int64 + MemorySwap int64 + NoCache bool + Pull bool + RemoteURL string + Remove bool + RepoName string + SuppressOutput bool + type Callback func(*Event, chan error, ...interface{}) + type Client interface + BuildImage func(image *BuildImage) (io.ReadCloser, error) + ContainerChanges func(id string) ([]*ContainerChanges, error) + ContainerLogs func(id string, options *LogOptions) (io.ReadCloser, error) + CreateContainer func(config *ContainerConfig, name string) (string, error) + Exec func(config *ExecConfig) (string, error) + ImportImage func(source string, repository string, tag string, tar io.Reader) (io.ReadCloser, error) + Info func() (*Info, error) + InspectContainer func(id string) (*ContainerInfo, error) + InspectImage func(id string) (*ImageInfo, error) + KillContainer func(id, signal string) error + ListContainers func(all, size bool, filters string) ([]Container, error) + ListImages func(all bool) ([]*Image, error) + LoadImage func(reader io.Reader) error + MonitorEvents func(options *MonitorEventsOptions, stopChan <-chan struct{}) (<-chan EventOrError, error) + PauseContainer func(name string) error + PullImage func(name string, auth *AuthConfig) error + RemoveContainer func(id string, force, volumes bool) error + RemoveImage func(name string) ([]*ImageDelete, error) + RenameContainer func(oldName string, newName string) error + RestartContainer func(id string, timeout int) error + StartContainer func(id string, config *HostConfig) error + StartMonitorEvents func(cb Callback, ec chan error, args ...interface{}) + StartMonitorStats func(id string, cb StatCallback, ec chan error, args ...interface{}) + StopAllMonitorEvents func() + StopAllMonitorStats func() + StopContainer func(id string, timeout int) error + TagImage func(nameOrID string, repo string, tag string, force bool) error + UnpauseContainer func(name string) error + Version func() (*Version, error) + Wait func(id string) <-chan WaitResult + type ConfigFile struct + Configs map[string]AuthConfig + type Container struct + Command string + Created int64 + Id string + Image string + Labels map[string]string + Names []string + Ports []Port + SizeRootFs int64 + SizeRw int64 + Status string + type ContainerChanges struct + Kind int + Path string + type ContainerConfig struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []string + CpuShares int64 + Cpuset string + Domainname string + Entrypoint []string + Env []string + ExposedPorts map[string]struct{} + HostConfig HostConfig + Hostname string + Image string + Labels map[string]string + MacAddress string + Memory int64 + MemorySwap int64 + NetworkDisabled bool + OnBuild []string + OpenStdin bool + PortSpecs []string + StdinOnce bool + Tty bool + User string + VolumeDriver string + Volumes map[string]struct{} + WorkingDir string + type ContainerInfo struct + Args []string + Config *ContainerConfig + Created string + ExecIDs []string + HostConfig *HostConfig + Id string + Image string + Name string + NetworkSettings struct{ ... } + Path string + ResolvConfPath string + State *State + SysInitPath string + Volumes map[string]string + type CpuStats struct + CpuUsage CpuUsage + SystemUsage uint64 + ThrottlingData ThrottlingData + type CpuUsage struct + PercpuUsage []uint64 + TotalUsage uint64 + UsageInKernelmode uint64 + UsageInUsermode uint64 + type DeviceMapping struct + CgroupPermissions string + PathInContainer string + PathOnHost string + type DockerClient struct + HTTPClient *http.Client + TLSConfig *tls.Config + URL *url.URL + func NewDockerClient(daemonUrl string, tlsConfig *tls.Config) (*DockerClient, error) + func NewDockerClientTimeout(daemonUrl string, tlsConfig *tls.Config, timeout time.Duration) (*DockerClient, error) + func (client *DockerClient) BuildImage(image *BuildImage) (io.ReadCloser, error) + func (client *DockerClient) ContainerChanges(id string) ([]*ContainerChanges, error) + func (client *DockerClient) ContainerLogs(id string, options *LogOptions) (io.ReadCloser, error) + func (client *DockerClient) CreateContainer(config *ContainerConfig, name string) (string, error) + func (client *DockerClient) Exec(config *ExecConfig) (string, error) + func (client *DockerClient) ImportImage(source string, repository string, tag string, tar io.Reader) (io.ReadCloser, error) + func (client *DockerClient) Info() (*Info, error) + func (client *DockerClient) InspectContainer(id string) (*ContainerInfo, error) + func (client *DockerClient) InspectImage(id string) (*ImageInfo, error) + func (client *DockerClient) KillContainer(id, signal string) error + func (client *DockerClient) ListContainers(all bool, size bool, filters string) ([]Container, error) + func (client *DockerClient) ListImages(all bool) ([]*Image, error) + func (client *DockerClient) LoadImage(reader io.Reader) error + func (client *DockerClient) MonitorEvents(options *MonitorEventsOptions, stopChan <-chan struct{}) (<-chan EventOrError, error) + func (client *DockerClient) PauseContainer(id string) error + func (client *DockerClient) PullImage(name string, auth *AuthConfig) error + func (client *DockerClient) RemoveContainer(id string, force, volumes bool) error + func (client *DockerClient) RemoveImage(name string) ([]*ImageDelete, error) + func (client *DockerClient) RenameContainer(oldName string, newName string) error + func (client *DockerClient) RestartContainer(id string, timeout int) error + func (client *DockerClient) StartContainer(id string, config *HostConfig) error + func (client *DockerClient) StartMonitorEvents(cb Callback, ec chan error, args ...interface{}) + func (client *DockerClient) StartMonitorStats(id string, cb StatCallback, ec chan error, args ...interface{}) + func (client *DockerClient) StopAllMonitorEvents() + func (client *DockerClient) StopAllMonitorStats() + func (client *DockerClient) StopContainer(id string, timeout int) error + func (client *DockerClient) TagImage(nameOrID string, repo string, tag string, force bool) error + func (client *DockerClient) UnpauseContainer(id string) error + func (client *DockerClient) Version() (*Version, error) + func (client *DockerClient) Wait(id string) <-chan WaitResult + type Error struct + Status string + StatusCode int + func (e Error) Error() string + type Event struct + From string + Id string + Status string + Time int64 + type EventOrError struct + Error error + type ExecConfig struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []string + Container string + Detach bool + Tty bool + type HostConfig struct + Binds []string + BlkioWeight int64 + CapAdd []string + CapDrop []string + CgroupParent string + ContainerIDFile string + CpuPeriod int64 + CpuQuota int64 + CpuShares int64 + CpusetCpus string + CpusetMems string + Devices []DeviceMapping + Dns []string + DnsSearch []string + ExtraHosts []string + IpcMode string + Links []string + LogConfig LogConfig + LxcConf []map[string]string + Memory int64 + MemorySwap int64 + NetworkMode string + OomKillDisable bool + PidMode string + PortBindings map[string][]PortBinding + Privileged bool + PublishAllPorts bool + ReadonlyRootfs bool + RestartPolicy RestartPolicy + SecurityOpt []string + UTSMode string + Ulimits []Ulimit + VolumesFrom []string + type Image struct + Created int64 + Id string + ParentId string + RepoTags []string + Size int64 + VirtualSize int64 + type ImageDelete struct + Deleted string + Untagged string + type ImageInfo struct + Architecture string + Author string + Comment string + Config *ContainerConfig + Container string + ContainerConfig *ContainerConfig + Created time.Time + DockerVersion string + Id string + Os string + Parent string + Size int64 + VirtualSize int64 + type Info struct + BridgeNfIp6tables bool + BridgeNfIptables bool + Containers int64 + Debug interface{} + DockerRootDir string + Driver string + DriverStatus [][]string + ExecutionDriver string + HttpProxy string + HttpsProxy string + ID string + IPv4Forwarding interface{} + Images int64 + IndexServerAddress string + InitPath string + InitSha1 string + KernelVersion string + Labels []string + MemTotal int64 + MemoryLimit interface{} + NCPU int64 + NEventsListener int64 + NFd int64 + NGoroutines int64 + Name string + NoProxy string + OperatingSystem string + SwapLimit interface{} + SystemTime string + type LogConfig struct + Config map[string]string + Type string + type LogOptions struct + Follow bool + Stderr bool + Stdout bool + Tail int64 + Timestamps bool + type MemoryStats struct + Failcnt uint64 + Limit uint64 + MaxUsage uint64 + Stats map[string]uint64 + Usage uint64 + type MonitorEventsFilters struct + Container string + Event string + Image string + type MonitorEventsOptions struct + Filters *MonitorEventsFilters + Since int + Until int + type NetworkStats struct + RxBytes uint64 + RxDropped uint64 + RxErrors uint64 + RxPackets uint64 + TxBytes uint64 + TxDropped uint64 + TxErrors uint64 + TxPackets uint64 + type Port struct + IP string + PrivatePort int + PublicPort int + Type string + type PortBinding struct + HostIp string + HostPort string + type RespContainersCreate struct + Id string + Warnings []string + type RestartPolicy struct + MaximumRetryCount int64 + Name string + type StatCallback func(string, *Stats, chan error, ...interface{}) + type State struct + Dead bool + Error string + ExitCode int + FinishedAt time.Time + Ghost bool + OOMKilled bool + Paused bool + Pid int + Restarting bool + Running bool + StartedAt time.Time + func (s *State) StateString() string + func (s *State) String() string + type Stats struct + BlkioStats BlkioStats + CpuStats CpuStats + MemoryStats MemoryStats + NetworkStats NetworkStats + Read time.Time + type ThrottlingData struct + Periods uint64 + ThrottledPeriods uint64 + ThrottledTime uint64 + type Ulimit struct + Hard uint64 + Name string + Soft uint64 + type Version struct + ApiVersion string + Arch string + GitCommit string + GoVersion string + KernelVersion string + Os string + Version string + type WaitResult struct + Error error + ExitCode int v0.4.0-rc9 Oct 2, 2015 v0.4.0-rc8 Sep 30, 2015 v0.4.0-rc7 Sep 25, 2015 v0.4.0-rc6 Sep 14, 2015 v0.4.0-rc5 Sep 1, 2015 v0.4.0-rc4 Aug 31, 2015 v0.4.0-rc3 Aug 27, 2015 v0.4.0-rc2 Aug 21, 2015 v0.4.0-rc11 Oct 15, 2015 v0.4.0-rc10 Oct 4, 2015 v0.4.0-rc1 Aug 14, 2015