# Functions
ContainerPoll tweaks the pollSettings for `container`.
CreateService creates a service on the passed in swarm daemon.
CreateServiceSpec creates a default service-spec, and applies the provided options.
ExecTask runs the passed in exec config on the given task.
GetRunningTasks gets the list of running tasks for a service.
JobComplete is a poll function for determining that a ReplicatedJob is completed additionally, while polling, it verifies that the job never exceeds MaxConcurrent running tasks.
NetworkPoll tweaks the pollSettings for `network`.
NewSwarm creates a swarm daemon for testing.
NoTasks verifies that all tasks are gone.
NoTasksForService verifies that there are no more tasks for the given service.
RunningTasksCount verifies there are `instances` tasks running for `serviceID`.
ServicePoll tweaks the pollSettings for `service`.
ServiceWithCapabilities sets the Capabilities option of the service's ContainerSpec.
ServiceWithCommand sets the command to use for the service.
ServiceWithConfig adds the config reference to the service.
ServiceWithEndpoint sets the Endpoint of the service.
ServiceWithImage sets the image to use for the service.
ServiceWithInit sets whether the service should use init or not.
ServiceWithMaxReplicas sets the max replicas for the service.
ServiceWithMode sets the mode of the service to the provided mode.
ServiceWithName sets the name of the service.
ServiceWithNetwork sets the network of the service.
ServiceWithPidsLimit sets the PidsLimit option of the service's Resources.Limits.
ServiceWithReplicas sets the replicas for the service.
ServiceWithSecret adds the secret reference to the service.
ServiceWithSysctls sets the Sysctls option of the service's ContainerSpec.
# Type aliases
ServiceSpecOpt is used with `CreateService` to pass in service spec modifiers.