compose

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2017 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DEFAULT_PROJECT string = "depcon_proj"
)
View Source
const (
	DOCKER_TLS_VERIFY string = "DOCKER_TLS_VERIFY"
)

Variables

View Source
var (
	ErrorParamsMissing = errors.New("One or more ${PARAMS} that were defined in the compose file could not be resolved.")
)

Functions

This section is empty.

Types

type Compose

type Compose interface {
	Up(services ...string) error

	Kill(services ...string) error

	Logs(services ...string) error

	Delete(services ...string) error

	Build(services ...string) error

	Restart(services ...string) error

	Pull(services ...string) error

	Start(services ...string) error

	Stop(services ...string) error

	Port(index int, proto, service, port string) error

	PS(quiet bool) error
}

func NewCompose

func NewCompose(context *Context) Compose

type ComposeLogger

type ComposeLogger struct {
}

func (*ComposeLogger) Create

func (n *ComposeLogger) Create(name string) logger.Logger

func (*ComposeLogger) Err

func (n *ComposeLogger) Err(b []byte)

func (*ComposeLogger) ErrWriter added in v0.9.2

func (n *ComposeLogger) ErrWriter() io.Writer

func (*ComposeLogger) Out

func (n *ComposeLogger) Out(b []byte)

func (*ComposeLogger) OutWriter added in v0.9.2

func (n *ComposeLogger) OutWriter() io.Writer

type ComposeWrapper

type ComposeWrapper struct {
	// contains filtered or unexported fields
}

func (*ComposeWrapper) Build

func (c *ComposeWrapper) Build(services ...string) error

func (*ComposeWrapper) Delete

func (c *ComposeWrapper) Delete(services ...string) error

func (*ComposeWrapper) Kill

func (c *ComposeWrapper) Kill(services ...string) error

func (*ComposeWrapper) Logs

func (c *ComposeWrapper) Logs(services ...string) error

func (*ComposeWrapper) PS

func (c *ComposeWrapper) PS(quiet bool) error

func (*ComposeWrapper) Port

func (c *ComposeWrapper) Port(index int, proto, service, port string) error

func (*ComposeWrapper) Pull

func (c *ComposeWrapper) Pull(services ...string) error

func (*ComposeWrapper) Restart

func (c *ComposeWrapper) Restart(services ...string) error

func (*ComposeWrapper) Start

func (c *ComposeWrapper) Start(services ...string) error

func (*ComposeWrapper) Stop

func (c *ComposeWrapper) Stop(services ...string) error

func (*ComposeWrapper) Up

func (c *ComposeWrapper) Up(services ...string) error

type Context

type Context struct {
	ComposeFile          string
	ProjectName          string
	EnvParams            map[string]string
	ErrorOnMissingParams bool
}

Jump to

Keyboard shortcuts

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