Versions in this module Expand all Collapse all v0 v0.1.3 Jun 25, 2015 Changes in this version type ServiceConfig + Uts string + VolumeDriver string v0.1.2 Jun 14, 2015 Changes in this version + 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 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) v0.1.1 Jun 9, 2015 v0.1.0 Jun 8, 2015 Changes in this version + const CONTAINER_CREATED + const CONTAINER_ID + const CONTAINER_STARTED + const CONTAINER_STARTING + 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_RELOAD + const PROJECT_RELOAD_TRIGGER + const PROJECT_RESTART_DONE + const PROJECT_RESTART_START + const PROJECT_UP_DONE + const PROJECT_UP_START + const SERVICE_ADD + const SERVICE_CREATE + const SERVICE_CREATE_START + const SERVICE_DELETE + const SERVICE_DELETE_START + const SERVICE_DOWN + const SERVICE_DOWN_START + const SERVICE_RESTART + const SERVICE_RESTART_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 UNKNOWN ServiceState = ServiceState("unknown") + var ValidRemotes = []string + func Merge(p *Project, bytes []byte) (map[string]*ServiceConfig, error) + type ConfigLookup interface + Lookup func(file, relativeTo string) ([]byte, string, error) + type Container struct + Name string + State string + type EmptyService struct + func (e *EmptyService) Create() error + func (e *EmptyService) Delete() error + func (e *EmptyService) Down() error + func (e *EmptyService) Log() error + func (e *EmptyService) Restart() error + func (e *EmptyService) Scale(count int) error + func (e *EmptyService) Up() error + type EnvironmentLookup interface + Lookup func(key, serviceName string, config *ServiceConfig) []string + type Event string + type FileConfigLookup struct + func (f FileConfigLookup) Lookup(file, relativeTo string) ([]byte, string, error) + type Maporslice struct + func NewMaporslice(parts []string) Maporslice + func (s *Maporslice) Slice() []string + func (s *Maporslice) UnmarshalYAML(unmarshal func(interface{}) error) error + func (s Maporslice) MarshalYAML() (interface{}, error) + type Project struct + ConfigLookup ConfigLookup + Configs map[string]*ServiceConfig + EnvironmentLookup EnvironmentLookup + File string + Name string + ReloadCallback func() error + func NewProject(name string, factory ServiceFactory) *Project + func (p *Project) AddConfig(name string, config *ServiceConfig) error + func (p *Project) AddListener(c chan<- ProjectEvent) + 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) 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) Restart(services ...string) error + func (p *Project) Up(services ...string) error + type ProjectEvent struct + Data map[string]string + Event Event + ServiceName string + type Service interface + Config func() *ServiceConfig + Create func() error + Delete func() error + Down func() error + Log func() error + Name func() string + Restart func() error + Scale func(count int) error + Up func() error + type ServiceConfig struct + Build string + CapAdd []string + CapDrop []string + Command string + CpuSet string + CpuShares int64 + Detach string + Devices []string + Dns Stringorslice + DnsSearch Stringorslice + Dockerfile string + DomainName string + Entrypoint string + EnvFile Stringorslice + Environment Maporslice + Expose []string + ExternalLinks []string + ExtraHosts []string + Hostname string + Image string + Ipc string + Labels SliceorMap + Links []string + 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 + Volumes []string + VolumesFrom []string + WorkingDir string + type ServiceFactory interface + Create func(project *Project, name string, serviceConfig *ServiceConfig) (Service, error) + 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)