container

package
v1.0.424 Latest Latest
Warning

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

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

Documentation

Overview

Package container provides functionality to interact with containers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOptions

type BuildOptions struct {
	Dockerfile   string
	OutputStream io.Writer
}

type Client

type Client interface {
	Build(imageName string, contextDir string, options BuildOptions) error
	Pull(imageName string, options PullOptions) error
	Create(imageName string, options CreateOptions) (string, error)
	Start(containerID string, options StartOptions) error
	Logs(containerID string, options LogsOptions) error
	Wait(containerID string, options WaitOptions) error
	Kill(containerID string, options KillOptions) error
	Remove(containerID string, options RemoveOptions) error
}

func NewDockerClient

func NewDockerClient(dockerClient *docker.Client) Client

type CreateOptions

type CreateOptions struct {
	Binds      []string
	HasCommand bool
	Shell      string
}

type KillOptions

type KillOptions struct{}

type LogsOptions

type LogsOptions struct {
	Stdout io.Writer
	Stderr io.Writer
}

type PullOptions

type PullOptions struct {
	NoPullIfLocal bool
	OutputStream  io.Writer
}

type RemoveOptions

type RemoveOptions struct{}

type StartOptions

type StartOptions struct {
	Commands []string
}

type WaitOptions

type WaitOptions struct{}

Jump to

Keyboard shortcuts

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