package
0.0.0-20200321120002-dd2de08144c3
Repository: https://github.com/wuka1/docker.git
Documentation: pkg.go.dev
# 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.
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`.
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.
ServiceWithName sets the name of the service.
ServiceWithNetwork sets the network of the service.
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.