Versions in this module Expand all Collapse all v0 v0.1.4 Oct 12, 2014 v0.1.3 Oct 11, 2014 v0.1.2 Oct 10, 2014 v0.1.1 Oct 10, 2014 Changes in this version + const DefaultPathEnv + var DefaultDns = []string + var ErrContainerStart = errors.New("The container failed to start. Unknown error") + var ErrContainerStartTimeout = errors.New("The container failed to start due to timed out.") + var ErrNoTTY = errors.New("No PTY found") + var ErrNotATTY = errors.New("The PTY is not a file") + func GetDefaultNetworkMtu() int + func GetFullContainerName(name string) (string, error) + type Config struct + AutoRestart bool + BridgeIP string + BridgeIface string + Context map[string][]string + DefaultIp net.IP + DisableNetwork bool + Dns []string + DnsSearch []string + EnableIpForward bool + EnableIpMasq bool + EnableIptables bool + EnableSelinuxSupport bool + ExecDriver string + FixedCIDR string + GraphDriver string + GraphOptions []string + InterContainerCommunication bool + Mirrors []string + Mtu int + Pidfile string + Root string + func (config *Config) InstallFlags() + type Container struct + AppArmorProfile string + Args []string + Config *runconfig.Config + Created time.Time + Driver string + ExecDriver string + HostnamePath string + HostsPath string + ID string + Image string + MountLabel string + Name string + NetworkSettings *NetworkSettings + Path string + ProcessLabel string + ResolvConfPath string + RestartCount int + Volumes map[string]string + VolumesRW map[string]bool + func (container *Container) AllocateNetwork() (err error) + func (container *Container) Changes() ([]archive.Change, error) + func (container *Container) Copy(resource string) (io.ReadCloser, error) + func (container *Container) DisableLink(name string) + func (container *Container) Exec(execConfig *execConfig) error + func (container *Container) Export() (archive.Archive, error) + func (container *Container) ExportRw() (archive.Archive, error) + func (container *Container) Exposes(p nat.Port) bool + func (container *Container) FromDisk() error + func (container *Container) GetImage() (*image.Image, error) + func (container *Container) GetMountLabel() string + func (container *Container) GetProcessLabel() string + func (container *Container) GetPtyMaster() (*os.File, error) + func (container *Container) GetSize() (int64, int64) + func (container *Container) HostConfig() *runconfig.HostConfig + func (container *Container) Kill() error + func (container *Container) KillSig(sig int) error + func (container *Container) LogEvent(action string) + func (container *Container) Mount() error + func (container *Container) Output() (output []byte, err error) + func (container *Container) Pause() error + func (container *Container) ReadLog(name string) (io.Reader, error) + func (container *Container) ReleaseNetwork() + func (container *Container) Resize(h, w int) error + func (container *Container) Restart(seconds int) error + func (container *Container) RestoreNetwork() error + func (container *Container) RootfsPath() string + func (container *Container) Run() error + func (container *Container) SetHostConfig(hostConfig *runconfig.HostConfig) + func (container *Container) Start() (err error) + func (container *Container) Stop(seconds int) error + func (container *Container) ToDisk() error + func (container *Container) Unmount() error + func (container *Container) Unpause() error + func (container *Container) VolumeMounts() map[string]*Mount + func (container *Container) VolumePaths() map[string]struct{} + func (container *Container) WriteHostConfig() error + type Daemon struct + func NewDaemon(config *Config, eng *engine.Engine) (*Daemon, error) + func NewDaemonFromDirectory(config *Config, eng *engine.Engine) (*Daemon, error) + func (d *Daemon) ContainerExecCreate(job *engine.Job) engine.Status + func (d *Daemon) ContainerExecStart(job *engine.Job) engine.Status + func (d *Daemon) Exec(c *Container, execConfig *execConfig, pipes *execdriver.Pipes, ...) (int, error) + func (daemon *Daemon) Attach(streamConfig *StreamConfig, openStdin, stdinOnce, tty bool, ...) chan error + func (daemon *Daemon) Changes(container *Container) ([]archive.Change, error) + func (daemon *Daemon) Children(name string) (map[string]*Container, error) + func (daemon *Daemon) CmdInfo(job *engine.Job) engine.Status + func (daemon *Daemon) Commit(container *Container, repository, tag, comment, author string, pause bool, ...) (*image.Image, error) + func (daemon *Daemon) Config() *Config + func (daemon *Daemon) ContainerAttach(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerChanges(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerCommit(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerCopy(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerCreate(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerExecResize(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerExport(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerGraph() *graphdb.Database + func (daemon *Daemon) ContainerInspect(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerKill(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerLogs(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerPause(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerResize(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerRestart(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerRm(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerStart(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerStop(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerTop(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerUnpause(job *engine.Job) engine.Status + func (daemon *Daemon) ContainerWait(job *engine.Job) engine.Status + func (daemon *Daemon) Containers(job *engine.Job) engine.Status + func (daemon *Daemon) Create(config *runconfig.Config, hostConfig *runconfig.HostConfig, name string) (*Container, []string, error) + func (daemon *Daemon) DeleteImage(eng *engine.Engine, name string, imgs *engine.Table, ...) error + func (daemon *Daemon) DeleteVolumes(volumeIDs map[string]struct{}) + func (daemon *Daemon) Destroy(container *Container) error + func (daemon *Daemon) Diff(container *Container) (archive.Archive, error) + func (daemon *Daemon) ExecutionDriver() execdriver.Driver + func (daemon *Daemon) Exists(id string) bool + func (daemon *Daemon) Get(name string) *Container + func (daemon *Daemon) GetByName(name string) (*Container, error) + func (daemon *Daemon) Graph() *graph.Graph + func (daemon *Daemon) GraphDriver() graphdriver.Driver + func (daemon *Daemon) ImageDelete(job *engine.Job) engine.Status + func (daemon *Daemon) ImageGetCached(imgID string, config *runconfig.Config) (*image.Image, error) + func (daemon *Daemon) Install(eng *engine.Engine) error + func (daemon *Daemon) Kill(c *Container, sig int) error + func (daemon *Daemon) List() []*Container + func (daemon *Daemon) LogToDisk(src *broadcastwriter.BroadcastWriter, dst, stream string) error + func (daemon *Daemon) Mount(container *Container) error + func (daemon *Daemon) Nuke() error + func (daemon *Daemon) Parents(name string) ([]string, error) + func (daemon *Daemon) Pause(c *Container) error + func (daemon *Daemon) Register(container *Container) error + func (daemon *Daemon) RegisterLink(parent, child *Container, alias string) error + func (daemon *Daemon) RegisterLinks(container *Container, hostConfig *runconfig.HostConfig) error + func (daemon *Daemon) Repositories() *graph.TagStore + func (daemon *Daemon) Run(c *Container, pipes *execdriver.Pipes, startCallback execdriver.StartCallback) (int, error) + func (daemon *Daemon) SystemConfig() *sysinfo.SysInfo + func (daemon *Daemon) SystemInitPath() string + func (daemon *Daemon) Unmount(container *Container) error + func (daemon *Daemon) Unpause(c *Container) error + type History []*Container + func (history *History) Add(container *Container) + func (history *History) Len() int + func (history *History) Less(i, j int) bool + func (history *History) Sort() + func (history *History) Swap(i, j int) + type Mount struct + MountToPath string + Writable bool + type NetworkSettings struct + Bridge string + Gateway string + IPAddress string + IPPrefixLen int + MacAddress string + PortMapping map[string]PortMapping + Ports nat.PortMap + func (settings *NetworkSettings) PortMappingAPI() *engine.Table + type PortMapping map[string]string + type State struct + ExitCode int + FinishedAt time.Time + Paused bool + Pid int + Restarting bool + Running bool + StartedAt time.Time + func NewState() *State + func (s *State) GetExitCode() int + func (s *State) GetPid() int + func (s *State) IsPaused() bool + func (s *State) IsRestarting() bool + func (s *State) IsRunning() bool + func (s *State) SetPaused() + func (s *State) SetRestarting(exitCode int) + func (s *State) SetRunning(pid int) + func (s *State) SetStopped(exitCode int) + func (s *State) SetUnpaused() + func (s *State) StateString() string + func (s *State) String() string + func (s *State) WaitRunning(timeout time.Duration) (int, error) + func (s *State) WaitStop(timeout time.Duration) (int, error) + type StreamConfig struct + func (streamConfig *StreamConfig) StderrLogPipe() io.ReadCloser + func (streamConfig *StreamConfig) StderrPipe() (io.ReadCloser, error) + func (streamConfig *StreamConfig) StdinPipe() (io.WriteCloser, error) + func (streamConfig *StreamConfig) StdoutLogPipe() io.ReadCloser + func (streamConfig *StreamConfig) StdoutPipe() (io.ReadCloser, error)