environment

package
v17.10.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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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