backend

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compose

type Compose struct {
	Version  string             `yaml:"version"`
	Services map[string]Service `yaml:"services"`
}

type DeployBackend

type DeployBackend = *DockerCompose

func GetBackend

func GetBackend(d common.DeployDesc) (db DeployBackend)

type DockerCompose

type DockerCompose struct {
	Path    string
	WorkDir string
	Compose
}

func NewDockerCompose

func NewDockerCompose() *DockerCompose

func (*DockerCompose) BuildCmd

func (d *DockerCompose) BuildCmd() (cmd *exec.Cmd)

func (*DockerCompose) Images

func (d *DockerCompose) Images() (images []common.Image, err error)

func (*DockerCompose) Load

func (d *DockerCompose) Load() (err error)

type Service

type Service struct {
	Image string `yaml:"image"`
	Build string `yaml:"build"`
}

Jump to

Keyboard shortcuts

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