Versions in this module Expand all Collapse all v0 v0.2.0 Mar 12, 2014 Changes in this version + const APIVERSION + const DEFAULTHTTPPORT + const DEFAULTPROTOCOL + const DEFAULTTAG + const DEFAULTUNIXSOCKET + const VERSION + var ErrBadRequest = errors.New("Bad Request") + var ErrForbidden = errors.New("Forbidden") + var ErrNotAuthorized = errors.New("Unauthorized") + var ErrNotFound = errors.New("Not Found") + var Logging = true + type Client struct + Containers *ContainerService + Images *ImageService + func New() *Client + type Config struct + AttachStderr bool + AttachStdin bool + AttachStdout bool + Cmd []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 + 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 ContainerService struct + func (c *ContainerService) Attach(id string, out io.Writer) error + func (c *ContainerService) Create(conf *Config) (*Run, error) + func (c *ContainerService) Inspect(id string) (*Container, error) + func (c *ContainerService) List() ([]*Containers, error) + func (c *ContainerService) ListAll() ([]*Containers, error) + func (c *ContainerService) Remove(id string) error + func (c *ContainerService) Run(conf *Config, host *HostConfig, out io.Writer) (*Wait, error) + func (c *ContainerService) RunDaemon(conf *Config, host *HostConfig) (*Run, error) + func (c *ContainerService) RunDaemonPorts(image string, ports ...string) (*Run, error) + func (c *ContainerService) Start(id string, conf *HostConfig) error + func (c *ContainerService) Stop(id string, timeout int) error + func (c *ContainerService) Wait(id string) (*Wait, error) + type Containers struct + Command string + Created int64 + ID string + Image string + Names []string + Ports []Port + SizeRootFs int64 + SizeRw int64 + Status string + type Delete struct + Deleted string + Untagged string + type HostConfig struct + Binds []string + ContainerIDFile string + Links []string + LxcConf []KeyValuePair + PortBindings map[Port][]PortBinding + Privileged bool + PublishAllPorts bool + type Image struct + Architecture string + Author string + Comment string + Config *Config + Container string + ContainerConfig Config + Created time.Time + DockerVersion string + ID string + OS string + Parent string + Size int64 + type ImageService struct + func (c *ImageService) Build(tag, dir string) error + func (c *ImageService) Create(image string) error + func (c *ImageService) Inspect(name string) (*Image, error) + func (c *ImageService) List() ([]*Images, error) + func (c *ImageService) Pull(image string) error + func (c *ImageService) PullTag(name, tag string) error + func (c *ImageService) Remove(image string) ([]*Delete, error) + type Images struct + Created int64 + ID string + ParentId string + RepoTags []string + Repository string + Size int64 + Tag string + VirtualSize int64 + type KeyValuePair struct + Key string + Value string + type NetworkSettings struct + Bridge string + Gateway string + IPAddress string + IPPrefixLen int + PortMapping map[string]PortMapping + Ports map[Port][]PortBinding + type Port string + func NewPort(proto, port string) Port + func (p Port) Int() int + func (p Port) Port() string + func (p Port) Proto() string + type PortBinding struct + HostIp string + HostPort string + type PortMapping map[string]string + type Run struct + ID string + Warnings []string + type State struct + ExitCode int + FinishedAt time.Time + Ghost bool + Pid int + Running bool + StartedAt time.Time + type Top struct + Processes [][]string + Titles []string + type Wait struct + StatusCode int