container

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
}

BuildOptions represents container build options.

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
}

Client defines Pachyderm's interface to container-engines such as docker.

func NewDockerClient

func NewDockerClient(dockerClient *docker.Client) Client

NewDockerClient create a Client from given docker.Client.

type CreateOptions

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

CreateOptions represents container create options.

type KillOptions

type KillOptions struct{}

KillOptions represents container kill options.

type LogsOptions

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

LogsOptions represents container log options.

type PullOptions

type PullOptions struct {
	NoPullIfLocal bool
	OutputStream  io.Writer
}

PullOptions represents container pull options.

type RemoveOptions

type RemoveOptions struct{}

RemoveOptions represents container remove options.

type StartOptions

type StartOptions struct {
	Commands []string
}

StartOptions represents container start options.

type WaitOptions

type WaitOptions struct{}

WaitOptions represents container wait options.

Jump to

Keyboard shortcuts

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