Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildConfig ¶
type BuildConfig struct {
Context string
Dockerfile string
ImageName string
ImageTag string
BuildArgs map[string]string
Labels map[string]string
NoCache bool
Target string
}
BuildConfig holds Docker build configuration.
func (*BuildConfig) GetBuildArgs ¶
func (c *BuildConfig) GetBuildArgs() []string
GetBuildArgs converts build args to CLI args.
type DockerComposeConfig ¶
type DockerComposeConfig struct {
Version string
Services map[string]ServiceConfig
}
DockerComposeConfig represents docker-compose configuration.
func NewCompose ¶
func NewCompose(version string) *DockerComposeConfig
NewCompose creates a new docker-compose config.
func (*DockerComposeConfig) AddService ¶
func (c *DockerComposeConfig) AddService(name string, config ServiceConfig)
AddService adds a service.
func (*DockerComposeConfig) Generate ¶
func (c *DockerComposeConfig) Generate() string
Generate generates docker-compose.yml content.
Click to show internal directories.
Click to hide internal directories.