Versions in this module Expand all Collapse all v0 v0.4.0 Jan 10, 2017 Changes in this version + func InterpolateRawServiceMap(baseRawServices *RawServiceMap, environmentLookup EnvironmentLookup) error type Config + func CreateConfig(bytes []byte) (*Config, error) type ServiceConfig + DNSOpts []string + GroupAdd []string + Isolation string + MemSwappiness yaml.MemStringorInt + OomScoreAdj yaml.StringorInt + Tmpfs yaml.Stringorslice type ServiceConfigV1 + DNSOpts []string + GroupAdd []string + Isolation string + MemSwappiness yaml.MemStringorInt + OomScoreAdj yaml.StringorInt + StopSignal string + Tmpfs yaml.Stringorslice type ServiceConfigs + func (c *ServiceConfigs) All() map[string]*ServiceConfig v0.3.0 Aug 9, 2016 Changes in this version + func ConvertServices(v1Services map[string]*ServiceConfigV1) (map[string]*ServiceConfig, error) + func IsValidRemote(remote string) bool + func Merge(existingServices *ServiceConfigs, environmentLookup EnvironmentLookup, ...) (string, map[string]*ServiceConfig, map[string]*VolumeConfig, ...) + func MergeServicesV1(existingServices *ServiceConfigs, environmentLookup EnvironmentLookup, ...) (map[string]*ServiceConfigV1, error) + func MergeServicesV2(existingServices *ServiceConfigs, environmentLookup EnvironmentLookup, ...) (map[string]*ServiceConfig, error) + func ParseNetworks(bytes []byte) (map[string]*NetworkConfig, error) + func ParseVolumes(bytes []byte) (map[string]*VolumeConfig, error) + type Config struct + Networks map[string]*NetworkConfig + Services RawServiceMap + Version string + Volumes map[string]*VolumeConfig + type Ipam struct + Config []IpamConfig + Driver string + type IpamConfig struct + AuxAddress map[string]string + Gateway string + IPRange string + Subnet string + type Log struct + Driver string + Options map[string]string + type NetworkConfig struct + Driver string + DriverOpts map[string]string + External yaml.External + Ipam Ipam + type ParseOptions struct + Interpolate bool + Postprocess func(map[string]*ServiceConfig) (map[string]*ServiceConfig, error) + Preprocess func(RawServiceMap) (RawServiceMap, error) + Validate bool type ServiceConfig + DependsOn []string + Extends yaml.MaporEqualSlice + Logging Log + NetworkMode string + Networks *yaml.Networks + ShmSize yaml.StringorInt + StopSignal string + type ServiceConfigV1 struct + Build string + CPUQuota yaml.StringorInt + CPUSet string + CPUShares yaml.StringorInt + CapAdd []string + CapDrop []string + CgroupParent string + Command yaml.Command + ContainerName string + DNS yaml.Stringorslice + DNSSearch yaml.Stringorslice + Devices []string + Dockerfile string + DomainName string + Entrypoint yaml.Command + EnvFile yaml.Stringorslice + Environment yaml.MaporEqualSlice + Expose []string + ExternalLinks []string + ExtraHosts []string + Hostname string + Image string + Ipc string + Labels yaml.SliceorMap + Links yaml.MaporColonSlice + LogDriver string + LogOpt map[string]string + MacAddress string + MemLimit yaml.StringorInt + MemSwapLimit yaml.StringorInt + Name string + Net string + Pid string + Ports []string + Privileged bool + ReadOnly bool + Restart string + SecurityOpt []string + ShmSize yaml.StringorInt + StdinOpen bool + Tty bool + Ulimits yaml.Ulimits + User string + Uts string + VolumeDriver string + Volumes []string + VolumesFrom []string + WorkingDir string + type ServiceConfigs struct + func NewServiceConfigs() *ServiceConfigs + func (c *ServiceConfigs) Add(name string, service *ServiceConfig) + func (c *ServiceConfigs) Get(name string) (*ServiceConfig, bool) + func (c *ServiceConfigs) Has(name string) bool + func (c *ServiceConfigs) Keys() []string + func (c *ServiceConfigs) Len() int + func (c *ServiceConfigs) Remove(name string) + type VolumeConfig struct + Driver string + DriverOpts map[string]string + External yaml.External v0.2.0 Apr 14, 2016 Changes in this version + var ValidRemotes = []string + func GetServiceHash(name string, config *ServiceConfig) string + func Interpolate(environmentLookup EnvironmentLookup, config *RawServiceMap) error + func MergeServices(existingServices *Configs, environmentLookup EnvironmentLookup, ...) (map[string]*ServiceConfig, error) + type Configs struct + func NewConfigs() *Configs + func (c *Configs) Add(name string, service *ServiceConfig) + func (c *Configs) Get(name string) (*ServiceConfig, bool) + func (c *Configs) Has(name string) bool + func (c *Configs) Keys() []string + func (c *Configs) Len() int + type EnvironmentLookup interface + Lookup func(key, serviceName string, config *ServiceConfig) []string + type RawService map[string]interface + type RawServiceMap map[string]RawService + type ResourceLookup interface + Lookup func(file, relativeTo string) ([]byte, string, error) + ResolvePath func(path, inFile string) string + type ServiceConfig struct + Build string + CPUQuota int64 + CPUSet string + CPUShares int64 + CapAdd []string + CapDrop []string + CgroupParent string + Command yaml.Command + ContainerName string + DNS yaml.Stringorslice + DNSSearch yaml.Stringorslice + Devices []string + Dockerfile string + DomainName string + Entrypoint yaml.Command + EnvFile yaml.Stringorslice + Environment yaml.MaporEqualSlice + Expose []string + ExternalLinks []string + ExtraHosts []string + Hostname string + Image string + Ipc string + Labels yaml.SliceorMap + Links yaml.MaporColonSlice + LogDriver string + LogOpt map[string]string + MacAddress string + MemLimit int64 + MemSwapLimit int64 + Name string + Net string + Pid string + Ports []string + Privileged bool + ReadOnly bool + Restart string + SecurityOpt []string + StdinOpen bool + Tty bool + Ulimits yaml.Ulimits + User string + Uts string + VolumeDriver string + Volumes []string + VolumesFrom []string + WorkingDir string