Documentation ¶
Index ¶
- func LoadCompose(home string, env map[string]string) (*types.Project, *types.ConfigDetails, error)
- type ClosingBuffer
- type ComposeRun
- func (c *ComposeRun) Cancel()
- func (c *ComposeRun) Id() uuid.UUID
- func (c *ComposeRun) Prepare(envs map[string]string, volumesRoot string, id uuid.UUID, hosts []string) error
- func (c *ComposeRun) PrepareServices(hosts []string) error
- func (c *ComposeRun) PrepareVolumes(prependPath string) error
- func (c *ComposeRun) Run(stdout io.WriteCloser, stderr io.WriteCloser) (int, error)
- type Context
- type Runnable
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadCompose ¶
LoadCompose loads a docker-compose.yml file
Types ¶
type ClosingBuffer ¶
ClosingBuffer it's a bytes.Buffer, but closable
func (*ClosingBuffer) Close ¶
func (c *ClosingBuffer) Close() error
type ComposeRun ¶
type ComposeRun struct {
// contains filtered or unexported fields
}
func NewComposeRun ¶
func NewComposeRun(home string, env map[string]string) (*ComposeRun, error)
func (*ComposeRun) Cancel ¶
func (c *ComposeRun) Cancel()
func (*ComposeRun) Id ¶
func (c *ComposeRun) Id() uuid.UUID
func (*ComposeRun) Prepare ¶
func (c *ComposeRun) Prepare(envs map[string]string, volumesRoot string, id uuid.UUID, hosts []string) error
Prepare set a quiet compose environment, waiting for its wake
func (*ComposeRun) PrepareServices ¶ added in v0.2.0
func (c *ComposeRun) PrepareServices(hosts []string) error
func (*ComposeRun) PrepareVolumes ¶
func (c *ComposeRun) PrepareVolumes(prependPath string) error
PrepareVolumes by prepending a custom full path and creating the path on the host
func (*ComposeRun) Run ¶
func (c *ComposeRun) Run(stdout io.WriteCloser, stderr io.WriteCloser) (int, error)
Run a compose service, writing the STDOUT and STDERR outputs, returns the UNIX return code
type Context ¶
type Context struct { Stdout io.WriteCloser Stderr io.WriteCloser // contains filtered or unexported fields }
Context is a run context, with a STDOUT and a STDERR
Click to show internal directories.
Click to hide internal directories.