Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config map[string]*ContainerConfig
Config represents the map of container configurations
func LoadConfigFromFile ¶
LoadConfigFromFile retrieves a Config object from a local file
func LoadConfigFromURL ¶
LoadConfigFromURL retrieves a Config object from a remote URL
func (Config) GetDependencyChain ¶ added in v1.2.0
func (Config) GetImageList ¶ added in v1.2.0
type ContainerConfig ¶
type ContainerConfig struct { Command []string `yaml:"command,omitempty" json:"command"` Environment []string `yaml:"environment,omitempty" json:"environment"` Hosts []string `yaml:"hosts" json:"hosts"` Image string `yaml:"image" json:"image"` Links []string `yaml:"links" json:"links"` Ports []PortConfig `yaml:"ports,omitempty" json:"ports"` Tag string `yaml:"tag" json:"tag"` UpdateTimes []string `yaml:"update_times,omitempty" json:"updatetimes"` Volumes []string `yaml:"volumes,omitempty" json:"volumes"` StartTimes string `yaml:"start_times" json:"starttimes"` StopTimeout uint `yaml:"stop_timeout" json:"stoptimes"` Labels map[string]string `yaml:"labels" json:"labels"` AddCapabilities []string `yaml:"cap_add" json:"cap_add"` DependsOn []string `yaml:"depends_on" json:"depends_on"` // contains filtered or unexported fields }
ContainerConfig represents a single container to be started on the specified Hosts
func (ContainerConfig) Checksum ¶
func (c ContainerConfig) Checksum() (string, error)
Checksum generates a hash over the ContainerConfig to compare it to older versions
func (ContainerConfig) GetDependencies ¶ added in v1.2.0
func (c ContainerConfig) GetDependencies() []string
func (ContainerConfig) ShouldBeRunning ¶
func (c ContainerConfig) ShouldBeRunning(hostname string) bool
ShouldBeRunning determines whether a ContainerConfig object should be started
func (ContainerConfig) UpdateAllowedAt ¶ added in v1.0.0
func (c ContainerConfig) UpdateAllowedAt(pit time.Time) (bool, error)
UpdateAllowedAt checks whether a container may be updated at the given time
func (*ContainerConfig) UpdateNextRun ¶ added in v1.2.0
func (c *ContainerConfig) UpdateNextRun() error
type PortConfig ¶
type PortConfig struct { Container string `yaml:"container" json:"container"` Local string `yaml:"local" json:"local"` }
PortConfig maps container ports to host ports
Click to show internal directories.
Click to hide internal directories.