docker

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Build(ctx context.Context, file io.Reader, tag string, dockerfile string) (Log, error)
	Run(ctx context.Context, opts RuntimeOptions, tag string, cmd ...string) (string, Log, error)
	Rm(ctx context.Context, containerId string) error
	Rmi(ctx context.Context, tag string) error
	ExitCode(ctx context.Context, containerId string) (int64, error)
}

func New

func New() (Client, error)

type Environments

type Environments map[string]interface{}

func (Environments) ToArray

func (e Environments) ToArray() []string

type Log added in v0.2.0

type Log interface {
	ReadLine() (*LogLine, error)
}

type LogLine added in v0.2.0

type LogLine struct {
	Timestamp time.Time
	Message   []byte
}

type RuntimeOptions

type RuntimeOptions struct {
	Environments Environments
	Volumes      Volumes
}

type Volumes

type Volumes []string

func (Volumes) ToMap

func (v Volumes) ToMap() map[string]struct{}

Directories

Path Synopsis
Package mock_docker is a generated GoMock package.
Package mock_docker is a generated GoMock package.

Jump to

Keyboard shortcuts

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