command

package
v0.0.0-...-1edbc24 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NOTRUN = -1

Variables

This section is empty.

Functions

This section is empty.

Types

type Exec

type Exec struct {
	Client    *docker.Client
	Container *docker.Container
	Command   []string
}

func (*Exec) Run

func (e *Exec) Run(stream *output.Stream) (int, error)

Run executes the given command line inside the container, streaming it STDOUT and STDERR to the given stream and returning its exitcode.

func (*Exec) String

func (e *Exec) String() string

String returns a string representation of this command

type Executable

type Executable interface {
	Run(stream *output.Stream) (int, error)
	String() string
}

func Boot

func Boot(client *docker.Client, container *docker.Container) Executable

Boot returns the boot command for a given Docker container

type None

type None struct {
}

func (*None) Run

func (n *None) Run(stream *output.Stream) (int, error)

Run does nothing, returns -1 as exit code

func (*None) String

func (e *None) String() string

String returns a string representation of this command

Jump to

Keyboard shortcuts

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