Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComposeObject ¶ added in v0.8.15
ComposeObject represent docker-compose.yml
func (*ComposeObject) Append ¶ added in v0.8.15
func (c *ComposeObject) Append(comp *ComposeObject)
Append another compose object
type Composer ¶ added in v0.8.15
type Composer interface {
DockerCompose(version Version) *ComposeObject
}
Composer responsible to compose docker
type Module ¶
type Module struct {
Version Version
}
Module of docker
func (*Module) BuildCommands ¶ added in v0.8.9
BuildCommands is command collection to called from
func (*Module) WithVersion ¶ added in v0.8.15
WithVersion to set the version
type Network ¶
type Network struct {
Driver string `yaml:"driver,omitempty"`
}
Network in docker-compose.yaml
type Networks ¶ added in v0.8.15
type Networks map[string]interface{}
Networks descriptor in docker-compose.yml
type Service ¶
type Service struct {
Image string `yaml:"image,omitempty"`
Command string `yaml:"command,omitempty"`
Environment map[string]string `yaml:"environment,omitempty"`
Volumes []string `yaml:"volumes,omitempty"`
Ports []string `yaml:"ports,omitempty"`
Networks []string `yaml:"networks,omitempty"`
Restart string `yaml:"restart,omitempty"`
}
Service in docker-compose.yaml
type Services ¶ added in v0.8.15
type Services map[string]interface{}
Services descriptor in docker-compose.yml
Click to show internal directories.
Click to hide internal directories.