dockercompose

package
v0.4.0-pre-1-g1921015 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComposeFile

type ComposeFile struct {
	File string
}

ComposeFile ...

func NewComposeFile

func NewComposeFile(file string) ComposeFile

NewComposeFile ...

func (*ComposeFile) Config

func (composeFile *ComposeFile) Config() *DockerCompose

Config returns a DockerCompose representation of the file note that all variable interpolations are fully rendered by the config command

type DockerCompose

type DockerCompose struct {
	Services map[string]*Service `yaml:"services"`
}

DockerCompose represents a docker-compose.yml file

type Service

type Service struct {
	Image       string            `yaml:"image,omitempty"`
	Environment map[string]string `yaml:"environment,omitempty"`
	Labels      map[string]string `yaml:"labels,omitempty"`
}

Service represents a docker container

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL