docker

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(c context.Context) runner.Engine

FromContext returns the Engine associated with this context.

func MustEnv

func MustEnv() runner.Engine

MustEnv returns a new Docker engine from the DOCKER_HOST and DOCKER_CERT_PATH environment variables. Errors creating the Docker engine will panic.

func New

func New(client dockerclient.Client) runner.Engine

New returns a new Docker engine using the provided Docker client.

func NewEnv

func NewEnv() (runner.Engine, error)

NewEnv returns a new Docker engine from the DOCKER_HOST and DOCKER_CERT_PATH environment variables.

func ToContext

func ToContext(c Setter, d runner.Engine)

ToContext adds the Engine to this context if it supports the Setter interface.

Types

type Setter

type Setter interface {
	Set(string, interface{})
}

Setter defines a context that enables setting values.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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