package environment
import "github.com/docker/cli/internal/test/environment"
Index ¶
- Variables
- func DaemonAPIVersion(t *testing.T) string
- func RemoteDaemon() bool
- func Setup() error
- func SkipIfCgroupNamespacesNotSupported(t *testing.T)
- func SkipIfDaemonNotLinux(t *testing.T)
- func SkipIfNotExperimentalDaemon(t *testing.T)
- func SkipIfNotPlatform(t *testing.T, platform string)
- func SkipPluginTests() bool
Variables ¶
var DefaultPollSettings = poll.WithDelay(100 * time.Millisecond)
DefaultPollSettings used with gotestyourself/poll
Functions ¶
func DaemonAPIVersion ¶
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 ¶
SkipIfCgroupNamespacesNotSupported skips the test if the running docker daemon doesn't support cgroup namespaces
func SkipIfDaemonNotLinux ¶
SkipIfDaemonNotLinux skips the test unless the running docker daemon is on Linux
func SkipIfNotExperimentalDaemon ¶
SkipIfNotExperimentalDaemon returns whether the test docker daemon is in experimental mode
func SkipIfNotPlatform ¶
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
Source Files ¶
- Version
- v28.1.1+incompatible (latest)
- Published
- Apr 18, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 4 hours ago –
Tools for package owners.