environment

package
v29.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 10 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 DefaultPollSettings = poll.WithDelay(100 * time.Millisecond)

DefaultPollSettings used with gotestyourself/poll

Functions

func DaemonAPIVersion

func DaemonAPIVersion(t *testing.T) string

DaemonAPIVersion returns the negotiated daemon API version.

func RemoteDaemon

func RemoteDaemon() bool

RemoteDaemon returns true if running against a remote daemon

func Setup

func Setup() error

Setup a new environment

func SkipIfCgroupNamespacesNotSupported

func SkipIfCgroupNamespacesNotSupported(t *testing.T)

SkipIfCgroupNamespacesNotSupported skips the test if the running docker daemon doesn't support cgroup namespaces

func SkipIfDaemonNotLinux

func SkipIfDaemonNotLinux(t *testing.T)

SkipIfDaemonNotLinux skips the test unless the running docker daemon is on Linux

func SkipIfNotExperimentalDaemon

func SkipIfNotExperimentalDaemon(t *testing.T)

SkipIfNotExperimentalDaemon returns whether the test docker daemon is in experimental mode

func SkipIfNotPlatform

func SkipIfNotPlatform(t *testing.T, platform string)

SkipIfNotPlatform skips the test if the running docker daemon is not running on a specific platform. platform should be in format os/arch (for example linux/arm64).

func SkipPluginTests

func SkipPluginTests() bool

SkipPluginTests returns if plugin tests should be skipped

Types

This section is empty.

Jump to

Keyboard shortcuts

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