Documentation ¶
Index ¶
- func WaitInspectWithArgs(dockerBinary, name, expr, expected string, timeout time.Duration, ...) error
- type Daemon
- func (d *Daemon) CheckActiveContainerCount(c *check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckControlAvailable(c *check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckLeader(c *check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckLocalNodeState(c *check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckNodeReadyCount(c *check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckPluginImage(plugin string) func(c *check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckPluginRunning(plugin string) func(c *check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckRunningTaskImages(c *check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckRunningTaskNetworks(c *check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckServiceRunningTasks(service string) func(*check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckServiceTasks(service string) func(*check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckServiceTasksInState(service string, state swarm.TaskState, message string) func(*check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckServiceTasksInStateWithError(service string, state swarm.TaskState, errorMessage string) func(*check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) CheckServiceUpdateState(service string) func(*check.C) (interface{}, check.CommentInterface)
- func (d *Daemon) Cmd(args ...string) (string, error)
- func (d *Daemon) Command(args ...string) icmd.Cmd
- func (d *Daemon) GetIDByName(name string) (string, error)
- func (d *Daemon) InspectField(name, filter string) (string, error)
- func (d *Daemon) PrependHostArg(args []string) []string
- func (d *Daemon) WaitRun(contID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Daemon ¶
Daemon represents a Docker daemon for the testing framework.
func New ¶
func New(t testingT, dockerBinary string, dockerdBinary string, ops ...func(*daemon.Daemon)) *Daemon
New returns a Daemon instance to be used for testing. This will create a directory such as d123456789 in the folder specified by $DOCKER_INTEGRATION_DAEMON_DEST or $DEST. The daemon will not automatically start.
func (*Daemon) CheckActiveContainerCount ¶
func (d *Daemon) CheckActiveContainerCount(c *check.C) (interface{}, check.CommentInterface)
CheckActiveContainerCount returns the number of active containers FIXME(vdemeester) should re-use ActivateContainers in some way
func (*Daemon) CheckControlAvailable ¶
func (d *Daemon) CheckControlAvailable(c *check.C) (interface{}, check.CommentInterface)
CheckControlAvailable returns the current swarm control available
func (*Daemon) CheckLeader ¶
func (d *Daemon) CheckLeader(c *check.C) (interface{}, check.CommentInterface)
CheckLeader returns whether there is a leader on the swarm or not
func (*Daemon) CheckLocalNodeState ¶
func (d *Daemon) CheckLocalNodeState(c *check.C) (interface{}, check.CommentInterface)
CheckLocalNodeState returns the current swarm node state
func (*Daemon) CheckNodeReadyCount ¶
func (d *Daemon) CheckNodeReadyCount(c *check.C) (interface{}, check.CommentInterface)
CheckNodeReadyCount returns the number of ready node on the swarm
func (*Daemon) CheckPluginImage ¶
func (d *Daemon) CheckPluginImage(plugin string) func(c *check.C) (interface{}, check.CommentInterface)
CheckPluginImage returns the runtime state of the plugin
func (*Daemon) CheckPluginRunning ¶
func (d *Daemon) CheckPluginRunning(plugin string) func(c *check.C) (interface{}, check.CommentInterface)
CheckPluginRunning returns the runtime state of the plugin
func (*Daemon) CheckRunningTaskImages ¶
func (d *Daemon) CheckRunningTaskImages(c *check.C) (interface{}, check.CommentInterface)
CheckRunningTaskImages returns the times each image is running as a task.
func (*Daemon) CheckRunningTaskNetworks ¶
func (d *Daemon) CheckRunningTaskNetworks(c *check.C) (interface{}, check.CommentInterface)
CheckRunningTaskNetworks returns the number of times each network is referenced from a task.
func (*Daemon) CheckServiceRunningTasks ¶
func (d *Daemon) CheckServiceRunningTasks(service string) func(*check.C) (interface{}, check.CommentInterface)
CheckServiceRunningTasks returns the number of running tasks for the specified service
func (*Daemon) CheckServiceTasks ¶
func (d *Daemon) CheckServiceTasks(service string) func(*check.C) (interface{}, check.CommentInterface)
CheckServiceTasks returns the number of tasks for the specified service
func (*Daemon) CheckServiceTasksInState ¶
func (d *Daemon) CheckServiceTasksInState(service string, state swarm.TaskState, message string) func(*check.C) (interface{}, check.CommentInterface)
CheckServiceTasksInState returns the number of tasks with a matching state, and optional message substring.
func (*Daemon) CheckServiceTasksInStateWithError ¶
func (d *Daemon) CheckServiceTasksInStateWithError(service string, state swarm.TaskState, errorMessage string) func(*check.C) (interface{}, check.CommentInterface)
CheckServiceTasksInStateWithError returns the number of tasks with a matching state, and optional message substring.
func (*Daemon) CheckServiceUpdateState ¶
func (d *Daemon) CheckServiceUpdateState(service string) func(*check.C) (interface{}, check.CommentInterface)
CheckServiceUpdateState returns the current update state for the specified service
func (*Daemon) Cmd ¶
Cmd executes a docker CLI command against this daemon. Example: d.Cmd("version") will run docker -H unix://path/to/unix.sock version
func (*Daemon) Command ¶
Command creates a docker CLI command against this daemon, to be executed later. Example: d.Command("version") creates a command to run "docker -H unix://path/to/unix.sock version"
func (*Daemon) GetIDByName ¶
GetIDByName returns the ID of an object (container, volume, …) given its name
func (*Daemon) InspectField ¶
InspectField returns the field filter by 'filter'
func (*Daemon) PrependHostArg ¶
PrependHostArg prepend the specified arguments by the daemon host flags