Documentation
¶
Index ¶
- type Compose
- func (c *Compose) AddNetwork(name string, networkConfig NetworkConfig) *Network
- func (c *Compose) AddService(name string, serviceConfig ServiceConfig, networks []ServiceNetworkConfig) *Service
- func (c *Compose) BuildDocker(name, script string) (string, error)
- func (c *Compose) BuildDockerPath(name, path string) (string, error)
- func (c *Compose) Clear() error
- func (c *Compose) Logs(machine ...string) (string, error)
- func (c *Compose) Start() error
- func (c *Compose) Stop() error
- type ComposeConfig
- type Network
- type NetworkConfig
- type Service
- type ServiceConfig
- type ServiceNetworkConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compose ¶
type Compose struct { ComposeConfig `yaml:",inline"` Services map[string]*Service Networks map[string]*Network // contains filtered or unexported fields }
func NewCompose ¶
func NewCompose(compose ComposeConfig) *Compose
func (*Compose) AddNetwork ¶
func (c *Compose) AddNetwork(name string, networkConfig NetworkConfig) *Network
func (*Compose) AddService ¶
func (c *Compose) AddService(name string, serviceConfig ServiceConfig, networks []ServiceNetworkConfig) *Service
func (*Compose) BuildDockerPath ¶
type ComposeConfig ¶
type ComposeConfig struct {
Version string
}
type Network ¶
type Network struct { NetworkConfig `yaml:",inline"` // contains filtered or unexported fields }
type NetworkConfig ¶
type NetworkConfig struct { }
type Service ¶
type Service struct { ServiceConfig `yaml:",inline"` ContainerName string `yaml:"container_name"` Networks map[string]ServiceNetworkConfig `yaml:"networks"` // contains filtered or unexported fields }
func (*Service) GetIPAddressForNetwork ¶
func (*Service) SetNetworks ¶
func (s *Service) SetNetworks(serviceNetworksConfig []ServiceNetworkConfig)
type ServiceConfig ¶
type ServiceNetworkConfig ¶
Click to show internal directories.
Click to hide internal directories.