environment

package
v17.12.0-ce-rc2+incomp... Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultClientBinary is the name of the docker binary
	DefaultClientBinary = os.Getenv("TEST_CLIENT_BINARY")
)

Functions

This section is empty.

Types

type Execution

type Execution struct {
	environment.Execution
	// contains filtered or unexported fields
}

Execution contains information about the current test execution and daemon under test

func New

func New() (*Execution, error)

New returns details about the testing environment

func (*Execution) DaemonPlatform

func (e *Execution) DaemonPlatform() string

DaemonPlatform is held globally so that tests can make intelligent decisions on how to configure themselves according to the platform of the daemon. This is initialized in docker_utils by sending a version call to the daemon and examining the response header. Deprecated: use Execution.OSType

func (*Execution) DockerBasePath

func (e *Execution) DockerBasePath() string

DockerBasePath is the base path of the docker folder (by default it is -/var/run/docker) TODO: remove Deprecated: use Execution.DaemonInfo.DockerRootDir

func (*Execution) DockerBinary

func (e *Execution) DockerBinary() string

DockerBinary returns the docker binary for this testing environment

func (*Execution) ExperimentalDaemon

func (e *Execution) ExperimentalDaemon() bool

ExperimentalDaemon tell whether the main daemon has experimental features enabled or not Deprecated: use DaemonInfo.ExperimentalBuild

func (*Execution) MinimalBaseImage

func (e *Execution) MinimalBaseImage() string

MinimalBaseImage is the image used for minimal builds (it depends on the platform) Deprecated: use Execution.PlatformDefaults.BaseImage

Jump to

Keyboard shortcuts

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