Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Hostname string Domainname string User string Memory int64 // Memory limit (in bytes) MemorySwap int64 // Total memory usage (memory + swap); set `-1' to disable swap Cpuset string // Cpuset 0-2, 0,1 AttachStdin bool AttachStdout bool AttachStderr bool PortSpecs []string // Deprecated - Can be in the format of 8080/tcp ExposedPorts map[Port]struct{} Tty bool // Attach standard streams to a tty, including stdin if it is not closed. OpenStdin bool // Open stdin StdinOnce bool // If true, close stdin after the 1 attached client disconnects. Env []string Cmd []string Image string // Name of the image as it was passed by the operator (eg. could be symbolic) Volumes map[string]struct{} WorkingDir string Entrypoint []string NetworkDisabled bool OnBuild []string }
type Container ¶
type Container interface { Scrub() IsDone() bool Peek() (*Stat, error) Signal(sig string) error Wait() (*Stat, error) Stdin() io.WriteCloser Stdout() io.ReadCloser Stderr() io.ReadCloser }
type HostConfig ¶
type KeyValuePair ¶
type NetworkMode ¶
type NetworkMode string
type NetworkSettings ¶
type PortBinding ¶
type PortMap ¶
type PortMap map[Port][]PortBinding
type PortMapping ¶
type Run ¶
type Run struct { Image string Memory int64 Lxc []string Volume []string Dir string Entry string Env []string Path string Args []string Scrub bool }
Run parameterizes a container execution.
type Stat ¶
type Stat struct { ID string Created time.Time Path string Args []string Config Config State State Image string NetworkSettings NetworkSettings ResolvConfPath string HostnamePath string HostsPath string Name string Driver string ExecDriver string Volumes map[string]string VolumesRW map[string]bool HostConfig HostConfig }
func ParseStatInArray ¶
Click to show internal directories.
Click to hide internal directories.