Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compose ¶
type Compose struct {
Name string `yaml:"-"`
Version string `yaml:"version"`
Services map[string]*Service `yaml:"services,omitempty"`
Path string `yaml:"-"`
OnStart func() error `yaml:"-"`
}
func NewCompose ¶
func (*Compose) AddService ¶
func (c *Compose) AddService(name, image string, opts ...ServiceOpt)
type Service ¶
type Service struct {
Name string `yaml:"-"`
Image string `yaml:"image,omitempty"`
Command string `yaml:"command,omitempty"`
Environment map[string]string `yaml:"environment,omitempty"`
Ports []string `yaml:"ports,omitempty"`
Volumes []string `yaml:"volumes,omitempty"`
WaitFunc func(*Service) error `yaml:"-"`
}
type ServiceOpt ¶
type ServiceOpt func(*Service)
Click to show internal directories.
Click to hide internal directories.