compose

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: MIT Imports: 3 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 CreateNewContainer

func CreateNewContainer(opts ImageOptions) error

CreateNewContainer creates a new docker container for the given service

func KillAllContainers

func KillAllContainers(opts BaseOptions) (*execplus.CmdPlus, 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 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
	LogChannel       chan string
}

BaseOptions are the options passed into docker compose functions

type ImageOptions

type ImageOptions struct {
	DockerComposeDir string
	Env              []string
	LogChannel       chan string
	ImageName        string
}

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

type ImagesOptions

type ImagesOptions struct {
	DockerComposeDir string
	Env              []string
	LogChannel       chan string
	ImageNames       []string
}

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