docker

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command []string

Command describes a docker CMD

type ContainerID

type ContainerID string

ContainerID describes a container id of docker

type Dockerfile

type Dockerfile string

Dockerfile represents a path to dockerfile

type ExitCode

type ExitCode int64

ExitCode describes a exit code

type Log

type Log = docker.Log

Log represents a log.

type RuntimeOptions

type RuntimeOptions = docker.RuntimeOptions

RuntimeOptions represents a options

type Service

type Service interface {
	Build(ctx context.Context, file io.Reader, tag Tag, dockerfile Dockerfile) (Log, error)
	Run(ctx context.Context, opts RuntimeOptions, tag Tag, cmd Command) (ContainerID, Log, error)
	Rm(ctx context.Context, containerID ContainerID) error
	Rmi(ctx context.Context, tag Tag) error
	ExitCode(ctx context.Context, containerID ContainerID) (ExitCode, error)
	Status() error
}

Service is a interface describe docker service.

func New

func New() (Service, error)

New returns instance of docker service

type Tag

type Tag string

Tag describes a docker tag

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