Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVolumeSrcKey ¶
func GetVolumeSrcKey(projectName string, serviceName string, volume project.ContainerServiceVolume) string
func SanitizeVolume ¶
Types ¶
type DockerAuth ¶
type DockerAuth struct {
Auth string
}
type DockerCompose ¶
type DockerCompose struct {
Version string `yaml:"version"`
Services map[string]Services `yaml:"services"`
Networks map[string]Network `yaml:"networks"`
Volumes map[string]Volume `yaml:"volumes,omitempty"`
}
func BuildDockerCompose ¶
func BuildDockerCompose(project *project.Project) (DockerCompose, error)
func (DockerCompose) Map ¶
func (d DockerCompose) Map() (map[string]interface{}, error)
func (DockerCompose) String ¶
func (d DockerCompose) String() (string, error)
type DriverOpts ¶
type LocalDockerConfig ¶
type LocalDockerConfig struct {
Auths map[string]DockerAuth
}
type ServiceNetwork ¶
type ServiceNetwork struct {
Aliases []string
}
type ServiceVolume ¶
type Services ¶
type Services struct {
ContainerName string `yaml:"container_name"`
Image string
Restart string
Labels map[string]string
User string `yaml:"user,omitempty"`
Networks map[string]ServiceNetwork `yaml:"networks,flow"`
Volumes []ServiceVolume `yaml:"volumes,omitempty"`
Ports []string `yaml:"ports,omitempty"`
Environment map[string]string `yaml:"environment,omitempty"`
DependsOn []string `yaml:"depends_on,omitempty"`
VolumesFrom []string `yaml:"volumes_from,omitempty"`
}
type Volume ¶
type Volume struct {
DriverOpts DriverOpts `yaml:"driver_opts,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.