Documentation ¶
Index ¶
- Constants
- func Reorder(conts []Container, op operation)
- type Container
- func (c *Container) ConditionalStartCommands() cmd.CommandSet
- func (c *Container) CreateCommands() cmd.CommandSet
- func (c *Container) Init(conn context.Context, nets []network.Network) error
- func (c *Container) IsCreated() bool
- func (c *Container) IsRunning() bool
- func (c *Container) LogEntry() *log.Entry
- func (c *Container) Pid() int
- func (c *Container) PullCommands() cmd.CommandSet
- func (c *Container) RecreateCommands() cmd.CommandSet
- func (c *Container) RemoveCommands() cmd.CommandSet
- func (c *Container) StartCommands() cmd.CommandSet
- func (c *Container) StopCommands() cmd.CommandSet
- func (c *Container) UpdateCommands() cmd.CommandSet
Constants ¶
View Source
const ( Start operation = true Stop operation = false )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Container ¶
type Container struct { Category string `toml:"category"` Name string `toml:"name"` Image string `toml:"image"` Hostname string `toml:"hostname,omitempty"` Command []string `toml:"cmd,omitempty"` Arguments string `toml:"arguments,omitempty"` Networks []network.Network `toml:"networks,omitempty"` Env map[string]string `toml:"env,omitempty"` Mounts []spec.Mount `toml:"mounts,omitempty"` Restart string `toml:"restart,omitempty"` Umask null.Int `toml:"umask,omitempty"` User string `toml:"user,omitempty"` ExposeTcp []uint16 `toml:"expose_tcp,omitempty"` ExposeUdp []uint16 `toml:"expose_udp,omitempty"` PortsTcp map[uint16]uint16 `toml:"ports,omitempty"` NetNS string `toml:"netns,omitempty"` StartOrder null.Int `toml:"start_order,omitempty"` // contains filtered or unexported fields }
func (*Container) ConditionalStartCommands ¶ added in v1.2.0
func (c *Container) ConditionalStartCommands() cmd.CommandSet
func (*Container) CreateCommands ¶
func (c *Container) CreateCommands() cmd.CommandSet
func (*Container) PullCommands ¶ added in v1.1.2
func (c *Container) PullCommands() cmd.CommandSet
func (*Container) RecreateCommands ¶
func (c *Container) RecreateCommands() cmd.CommandSet
func (*Container) RemoveCommands ¶ added in v1.1.9
func (c *Container) RemoveCommands() cmd.CommandSet
unexported version just removes the container without attempting a stop.
func (*Container) StartCommands ¶
func (c *Container) StartCommands() cmd.CommandSet
func (*Container) StopCommands ¶
func (c *Container) StopCommands() cmd.CommandSet
func (*Container) UpdateCommands ¶
func (c *Container) UpdateCommands() cmd.CommandSet
Click to show internal directories.
Click to hide internal directories.