Documentation
¶
Index ¶
- func RealMain()
- type Config
- type Container
- type ContainerMap
- type Containers
- type Dependencies
- type DependencyGraph
- type Options
- type RmParameters
- type RunParameters
- func (r *RunParameters) Cidfile() string
- func (r *RunParameters) Cmd() []string
- func (r *RunParameters) Dns() []string
- func (r *RunParameters) Entrypoint() string
- func (r *RunParameters) Env() []string
- func (r *RunParameters) EnvFile() []string
- func (r *RunParameters) Expose() []string
- func (r *RunParameters) Hostname() string
- func (r *RunParameters) Link() []string
- func (r *RunParameters) LxcConf() []string
- func (r *RunParameters) Memory() string
- func (r *RunParameters) Net() string
- func (r *RunParameters) Publish() []string
- func (r *RunParameters) User() string
- func (r *RunParameters) Volume() []string
- func (r *RunParameters) VolumesFrom() []string
- func (r *RunParameters) Workdir() string
- type StartParameters
- type StatusError
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config interface {
TargetedContainers() Containers
DependencyGraph() DependencyGraph
}
type Container ¶
type Container interface {
Name() string
Dockerfile() string
Image() string
Id() string
Dependencies() *Dependencies
Exists() bool
Running() bool
Paused() bool
ImageExists() bool
Status() []string
Provision(nocache bool)
ProvisionOrSkip(update bool, nocache bool)
Run()
Start()
RunOrStart()
Kill()
Stop()
Pause()
Unpause()
Rm(force bool)
Push()
}
type ContainerMap ¶
ContainerMap maps the container name to its configuration
type Containers ¶
type Containers []Container
type Dependencies ¶
Dependencies contains 4 fields: all: contains all dependencies link: containers linked to volumesFrom: containers that provide volumes net: container the net stack is shared with
type DependencyGraph ¶
type DependencyGraph map[string]*Dependencies
DependencyGraph maps container names to their dependencies
func (DependencyGraph) DOT ¶ added in v0.10.0
func (graph DependencyGraph) DOT(writer io.Writer, targetedContainers Containers)
dumps the dependency graph as a DOT to the writer
type RmParameters ¶
type RmParameters struct {
Volumes bool `json:"volumes" yaml:"volumes"`
}
type RunParameters ¶
type RunParameters struct {
RawCidfile string `json:"cidfile" yaml:"cidfile"`
Detach bool `json:"detach" yaml:"detach"`
RawDns []string `json:"dns" yaml:"dns"`
RawEntrypoint string `json:"entrypoint" yaml:"entrypoint"`
RawEnv []string `json:"env" yaml:"env"`
RawEnvFile []string `json:"env-file" yaml:"env-file"`
RawExpose []string `json:"expose" yaml:"expose"`
RawHostname string `json:"hostname" yaml:"hostname"`
Interactive bool `json:"interactive" yaml:"interactive"`
RawLink []string `json:"link" yaml:"link"`
RawLxcConf []string `json:"lxc-conf" yaml:"lxc-conf"`
RawMemory string `json:"memory" yaml:"memory"`
RawNet string `json:"net" yaml:"net"`
Privileged bool `json:"privileged" yaml:"privileged"`
RawPublish []string `json:"publish" yaml:"publish"`
PublishAll bool `json:"publish-all" yaml:"publish-all"`
Rm bool `json:"rm" yaml:"rm"`
Tty bool `json:"tty" yaml:"tty"`
RawUser string `json:"user" yaml:"user"`
RawVolume []string `json:"volume" yaml:"volume"`
RawVolumesFrom []string `json:"volumes-from" yaml:"volumes-from"`
RawWorkdir string `json:"workdir" yaml:"workdir"`
RawCmd interface{} `json:"cmd" yaml:"cmd"`
}
func (*RunParameters) Cidfile ¶
func (r *RunParameters) Cidfile() string
func (*RunParameters) Cmd ¶
func (r *RunParameters) Cmd() []string
func (*RunParameters) Dns ¶
func (r *RunParameters) Dns() []string
func (*RunParameters) Entrypoint ¶
func (r *RunParameters) Entrypoint() string
func (*RunParameters) Env ¶
func (r *RunParameters) Env() []string
func (*RunParameters) EnvFile ¶
func (r *RunParameters) EnvFile() []string
func (*RunParameters) Expose ¶
func (r *RunParameters) Expose() []string
func (*RunParameters) Hostname ¶
func (r *RunParameters) Hostname() string
func (*RunParameters) Link ¶
func (r *RunParameters) Link() []string
func (*RunParameters) LxcConf ¶
func (r *RunParameters) LxcConf() []string
func (*RunParameters) Memory ¶
func (r *RunParameters) Memory() string
func (*RunParameters) Net ¶
func (r *RunParameters) Net() string
func (*RunParameters) Publish ¶
func (r *RunParameters) Publish() []string
func (*RunParameters) User ¶
func (r *RunParameters) User() string
func (*RunParameters) Volume ¶
func (r *RunParameters) Volume() []string
func (*RunParameters) VolumesFrom ¶
func (r *RunParameters) VolumesFrom() []string
func (*RunParameters) Workdir ¶
func (r *RunParameters) Workdir() string
type StartParameters ¶ added in v0.10.0
type StatusError ¶
type StatusError struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.