package environment
import "github.com/docker/cli/internal/test/environment"
Index ¶
- Variables
- 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 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
- v24.0.0+incompatible
- Published
- May 12, 2023
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 6 minutes ago –
Tools for package owners.