compose

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAllImages

func BuildAllImages(opts BaseOptions) error

BuildAllImages builds all the docker images defined in docker-compose.yml

func BuildImage added in v0.28.1

func BuildImage(opts ImageOptions) error

BuildImage builds the given docker image

func CreateNewContainer

func CreateNewContainer(opts ImageOptions) error

CreateNewContainer creates a new docker container for the given service

func KillAllContainers

func KillAllContainers(opts BaseOptions) error

KillAllContainers kills all the containers

func KillContainer

func KillContainer(opts ImageOptions) error

KillContainer kills the docker container of the given service

func PullAllImages

func PullAllImages(opts BaseOptions) error

PullAllImages pulls all the docker images defined in docker-compose.yml

func PullImage added in v0.28.1

func PullImage(opts ImageOptions) error

PullImage builds the given docker image

func RestartContainer

func RestartContainer(opts ImageOptions) error

RestartContainer starts the docker container of the given service

func RunImages

func RunImages(opts ImagesOptions) (*execplus.CmdPlus, error)

RunImages runs the given docker images

Types

type BaseOptions

type BaseOptions struct {
	DockerComposeDir string
	Env              []string
	Logger           *util.Logger
}

BaseOptions are the options passed into docker compose functions

type ImageOptions

type ImageOptions struct {
	DockerComposeDir string
	Env              []string
	ImageName        string
	Logger           *util.Logger
}

ImageOptions is the options to compose functions that deal with a single image

type ImagesOptions

type ImagesOptions struct {
	DockerComposeDir string
	Env              []string
	ImageNames       []string
	Logger           *util.Logger
}

ImagesOptions is the options to compose functions that deal with multiple images

Jump to

Keyboard shortcuts

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