package environment

import "github.com/docker/cli/components/engine/integration-cli/environment"

Index

Variables

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

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

Source Files

environment.go

Version
v17.10.0-ce-rc1+incompatible
Published
Oct 4, 2017
Platform
linux/amd64
Imports
3 packages
Last checked
14 minutes ago

Tools for package owners.