docker

package
v0.3.3-beta1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationOption

type ConfigurationOption func(*container.Config, *container.HostConfig) error

ConfigurationOption is an option used to customize docker driver container and host config

type Driver

type Driver struct {

	// If true, this will not actually run Docker
	Simulate bool
	// contains filtered or unexported fields
}

Driver is capable of running Docker invocation images using Docker itself.

func (*Driver) AddConfigurationOptions

func (d *Driver) AddConfigurationOptions(opts ...ConfigurationOption)

AddConfigurationOptions adds configuration callbacks to the driver

func (*Driver) Config

func (d *Driver) Config() map[string]string

Config returns the Docker driver configuration options

func (*Driver) Handles

func (d *Driver) Handles(dt string) bool

Handles indicates that the Docker driver supports "docker" and "oci"

func (*Driver) Run

Run executes the Docker driver

func (*Driver) SetConfig

func (d *Driver) SetConfig(settings map[string]string)

SetConfig sets Docker driver configuration

func (*Driver) SetContainerErr

func (d *Driver) SetContainerErr(w io.Writer)

SetContainerErr sets the container error stream

func (*Driver) SetContainerOut

func (d *Driver) SetContainerOut(w io.Writer)

SetContainerOut sets the container output stream

func (*Driver) SetDockerCli

func (d *Driver) SetDockerCli(dockerCli command.Cli)

SetDockerCli makes the driver use an already initialized cli

Jump to

Keyboard shortcuts

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