package
0.0.0-20250130204033-e82d90384e5b
Repository: https://github.com/laurentgoderre/moby.git
Documentation: pkg.go.dev
# Functions
New returns a Daemon instance to be used for testing.
NewDaemon returns a Daemon instance to be used for testing.
ScanLogsMatchAll returns a function that can be used to scan the daemon logs until *all* the passed in strings are matched.
ScanLogsMatchCount returns a function that can be used to scan the daemon logs until the passed in matcher function matches `count` times.
ScanLogsMatchString returns a function that can be used to scan the daemon logs for the passed in string (`contains`).
SignalDaemonDump sends a signal to the daemon to write a dump file.
WithContainerdSocket sets the --containerd option on the daemon.
WithDefaultCgroupNamespaceMode sets the default cgroup namespace mode for the daemon.
WithDockerdBinary sets the dockerd binary to the specified one.
WithEnvironment sets options from testutil/environment.Execution struct.
WithEnvVars sets additional environment variables for the daemon.
WithExperimental sets the daemon in experimental mode.
WithInit sets the daemon init.
WithOOMScoreAdjust sets OOM score for the daemon.
WithResolvConf allows a test to provide content for a resolv.conf file to be used as the basis for resolv.conf in the container, instead of the host's /etc/resolv.conf.
WithRootlessUser sets the daemon to be rootless.
WithStorageDriver sets store driver option.
WithSwarmDataPathPort sets the swarm datapath port to use for swarm mode.
WithSwarmDefaultAddrPool sets the swarm default address pool to use for swarm mode.
WithSwarmDefaultAddrPoolSubnetSize sets the subnet length mask of swarm default address pool to use for swarm mode.
WithSwarmListenAddr sets the swarm listen addr to use for swarm mode.
WithSwarmPort sets the swarm port to use for swarm mode.
WithTestLogger causes the daemon to log certain actions to the provided test.
No description provided by the author
# Constants
DefaultSwarmPort is the default port use for swarm in the tests.
# Variables
SockRoot holds the path of the default docker integration daemon socket.
# Interfaces
LogT is the subset of the testing.TB interface used by the daemon.
# Type aliases
ConfigConstructor defines a swarm config constructor.
NodeConstructor defines a swarm node constructor.
Option is used to configure a daemon.
SecretConstructor defines a swarm secret constructor.
ServiceConstructor defines a swarm service constructor function.
SpecConstructor defines a swarm spec constructor.