docker

package
v0.0.0-...-c937b9e Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2015 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDockerClient

func GetDockerClient() (*dockerclient.Client, error)

Types

type ContainerResponse

type ContainerResponse struct {
	Container *dockerclient.Container
	Err       error
	Log       []byte
	Files     map[string]io.Reader
}

type Docker

type Docker struct {
	Client *dockerclient.Client
}

func NewDocker

func NewDocker() (*Docker, error)

func (*Docker) Ping

func (d *Docker) Ping() error

Ping the docker server

See http://goo.gl/stJENm for more details.

func (*Docker) PullImage

func (d *Docker) PullImage(name string) error

func (*Docker) RunImage

func (d *Docker) RunImage(ctx context.Context, config *dockerclient.Config,
	hostCfg *dockerclient.HostConfig, takeFiles []string) <-chan ContainerResponse

RunImage returns 2 response, first with created container object, second with logs. I know it's kind of stupid. But I'll rewrite it later.

type Executor

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

func NewExecutor

func NewExecutor(docker *Docker) *Executor

Jump to

Keyboard shortcuts

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