docker

package
v0.0.0-...-a8b85d2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWorkingDirectory = fmt.Errorf("working directory is required")
	ErrCommandRequired  = fmt.Errorf("command is required")
	ErrImageRequired    = fmt.Errorf("image is required")
)
View Source
var DefaultExecutor = Executor(defaultExecutor)

Functions

func NewDockerManager

func NewDockerManager(runner CommandExecutor) *dockerManager

func NewFactory

func NewFactory() *factory

func NewImportOCI

func NewImportOCI(
	directory string,
	commandExecutor CommandExecutor,
) *importOCI

func NewResourceVolumeManager

func NewResourceVolumeManager(
	commandExecutor CommandExecutor,
) *resourceVolumeManager

Types

type CommandExecutor

type CommandExecutor interface {
	Run(
		io.Reader,
		io.Writer,
		io.Writer,
		string,
		...string,
	) error
}

type Executor

type Executor func(
	stdin io.Reader,
	stdout io.Writer,
	stderr io.Writer,
	command string,
	args ...string,
) error

func (Executor) Run

func (r Executor) Run(
	stdin io.Reader,
	stdout io.Writer,
	stderr io.Writer,
	command string,
	args ...string,
) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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