Versions in this module Expand all Collapse all v0 v0.4.2-rc1 Dec 2, 2015 v0.4.1 Nov 16, 2015 v0.4.1-rc1 Nov 13, 2015 v0.4.0 Oct 23, 2015 Changes in this version + const CONTAINER_CREATED + const CONTAINER_ID + const CONTAINER_STARTED + const NO_EVENT + const PROJECT_BUILD_DONE + const PROJECT_BUILD_START + const PROJECT_CREATE_DONE + const PROJECT_CREATE_START + const PROJECT_DELETE_DONE + const PROJECT_DELETE_START + const PROJECT_DOWN_DONE + const PROJECT_DOWN_START + const PROJECT_KILL_DONE + const PROJECT_KILL_START + const PROJECT_RELOAD + const PROJECT_RELOAD_TRIGGER + const PROJECT_RESTART_DONE + const PROJECT_RESTART_START + const PROJECT_START_DONE + const PROJECT_START_START + const PROJECT_UP_DONE + const PROJECT_UP_START + const REL_TYPE_IPC_NAMESPACE + const REL_TYPE_LINK + const REL_TYPE_NET_NAMESPACE + const REL_TYPE_VOLUMES_FROM + const SERVICE_ADD + const SERVICE_BUILD + const SERVICE_BUILD_START + const SERVICE_CREATE + const SERVICE_CREATE_START + const SERVICE_DELETE + const SERVICE_DELETE_START + const SERVICE_DOWN + const SERVICE_DOWN_START + const SERVICE_KILL + const SERVICE_KILL_START + const SERVICE_PULL + const SERVICE_PULL_START + const SERVICE_RESTART + const SERVICE_RESTART_START + const SERVICE_START + const SERVICE_START_START + const SERVICE_UP + const SERVICE_UP_IGNORED + const SERVICE_UP_START + var EXECUTED ServiceState = ServiceState("executed") + var ErrRestart error = errors.New("Restart execution") + var ErrUnsupported error = errors.New("UnsupportedOperation") + var UNKNOWN ServiceState = ServiceState("unknown") + var ValidRemotes = []string + func GetContainerFromIpcLikeConfig(p *Project, conf string) string + func GetServiceHash(name string, config ServiceConfig) string + func Merge(p *Project, bytes []byte) (map[string]*ServiceConfig, error) + func NameAlias(name string) (string, string) + func NewDefaultListener(p *Project) chan<- ProjectEvent + type Command struct + func NewCommand(parts ...string) Command + func (s *Command) Slice() []string + func (s *Command) ToString() string + func (s *Command) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s Command) MarshalYAML() (interface{}, error) + type ConfigLookup interface + Lookup func(file, relativeTo string) ([]byte, string, error) + type Container interface + Id func() (string, error) + Name func() string + Port func(port string) (string, error) + type Context struct + ComposeBytes []byte + ComposeFile string + ConfigLookup ConfigLookup + EnvironmentLookup EnvironmentLookup + IgnoreMissingConfig bool + Log bool + LoggerFactory logger.Factory + Project *Project + ProjectName string + Rebuild bool + ServiceFactory ServiceFactory + Signal string + Timeout int + type EmptyService struct + func (e *EmptyService) Build() error + func (e *EmptyService) Containers() ([]Container, error) + func (e *EmptyService) Create() error + func (e *EmptyService) Delete() error + func (e *EmptyService) Down() error + func (e *EmptyService) Info() (InfoSet, error) + func (e *EmptyService) Kill() error + func (e *EmptyService) Log() error + func (e *EmptyService) Pull() error + func (e *EmptyService) Restart() error + func (e *EmptyService) Scale(count int) error + func (e *EmptyService) Start() error + func (e *EmptyService) Up() error + type EnvironmentLookup interface + Lookup func(key, serviceName string, config *ServiceConfig) []string + type Event int + func (e Event) String() string + type Info []InfoPart + type InfoPart struct + Key string + Value string + type InfoSet []Info + func (infos InfoSet) String() string + type MaporColonSlice struct + func NewMaporColonSlice(parts []string) MaporColonSlice + func (s *MaporColonSlice) Slice() []string + func (s *MaporColonSlice) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s MaporColonSlice) MarshalYAML() (interface{}, error) + type MaporEqualSlice struct + func NewMaporEqualSlice(parts []string) MaporEqualSlice + func (s *MaporEqualSlice) Slice() []string + func (s *MaporEqualSlice) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s MaporEqualSlice) MarshalYAML() (interface{}, error) + type MaporSpaceSlice struct + func NewMaporSpaceSlice(parts []string) MaporSpaceSlice + func (s *MaporSpaceSlice) Slice() []string + func (s *MaporSpaceSlice) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s MaporSpaceSlice) MarshalYAML() (interface{}, error) + type Project struct + Configs map[string]*ServiceConfig + File string + Name string + ReloadCallback func() error + func NewProject(context *Context) *Project + func (p *Project) AddConfig(name string, config *ServiceConfig) error + func (p *Project) AddListener(c chan<- ProjectEvent) + func (p *Project) Build(services ...string) error + func (p *Project) Create(services ...string) error + func (p *Project) CreateService(name string) (Service, error) + func (p *Project) Delete(services ...string) error + func (p *Project) Down(services ...string) error + func (p *Project) Kill(services ...string) error + func (p *Project) Load(bytes []byte) error + func (p *Project) Log(services ...string) error + func (p *Project) Notify(event Event, serviceName string, data map[string]string) + func (p *Project) Parse() error + func (p *Project) Pull(services ...string) error + func (p *Project) Restart(services ...string) error + func (p *Project) Start(services ...string) error + func (p *Project) Up(services ...string) error + type ProjectEvent struct + Data map[string]string + Event Event + ServiceName string + type Service interface + Build func() error + Config func() *ServiceConfig + Containers func() ([]Container, error) + Create func() error + Delete func() error + DependentServices func() []ServiceRelationship + Down func() error + Info func() (InfoSet, error) + Kill func() error + Log func() error + Name func() string + Pull func() error + Restart func() error + Scale func(count int) error + Start func() error + Up func() error + type ServiceConfig struct + Build string + CapAdd []string + CapDrop []string + Command Command + CpuSet string + CpuShares int64 + Devices []string + Dns Stringorslice + DnsSearch Stringorslice + Dockerfile string + DomainName string + Entrypoint Command + EnvFile Stringorslice + Environment MaporEqualSlice + Expose []string + ExternalLinks []string + ExtraHosts []string + Hostname string + Image string + Ipc string + Labels SliceorMap + Links MaporColonSlice + LogDriver string + LogOpt map[string]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 + User string + Uts string + VolumeDriver string + Volumes []string + VolumesFrom []string + WorkingDir string + type ServiceFactory interface + Create func(project *Project, name string, serviceConfig *ServiceConfig) (Service, error) + type ServiceRelationship struct + Alias string + Optional bool + Target string + Type ServiceRelationshipType + func DefaultDependentServices(p *Project, s Service) []ServiceRelationship + func NewServiceRelationship(nameAlias string, relType ServiceRelationshipType) ServiceRelationship + type ServiceRelationshipType string + type ServiceState string + type SliceorMap struct + func NewSliceorMap(parts map[string]string) SliceorMap + func (s *SliceorMap) MapParts() map[string]string + func (s *SliceorMap) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s SliceorMap) MarshalYAML() (interface{}, error) + type Stringorslice struct + func NewStringorslice(parts ...string) Stringorslice + func (s *Stringorslice) Len() int + func (s *Stringorslice) Slice() []string + func (s *Stringorslice) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s Stringorslice) MarshalYAML() (interface{}, error) v0.4.0-rc9 Oct 2, 2015 v0.4.0-rc8 Sep 30, 2015 v0.4.0-rc7 Sep 25, 2015 v0.4.0-rc6 Sep 14, 2015 v0.4.0-rc5 Sep 1, 2015 v0.4.0-rc4 Aug 31, 2015 v0.4.0-rc3 Aug 27, 2015 v0.4.0-rc2 Aug 21, 2015 v0.4.0-rc11 Oct 15, 2015 v0.4.0-rc10 Oct 4, 2015 v0.4.0-rc1 Aug 14, 2015