moby--moby/daemon/cluster
Josh Hawn cfdf84d5d0 Update Container Wait Backend
This patch consolidates the two WaitStop and WaitWithContext methods
on the container.State type. Now there is a single method, Wait, which
takes a context and a bool specifying whether to wait for not just a
container exit but also removal.

The behavior has been changed slightly so that a wait call during a
Created state will not return immediately but instead wait for the
container to be started and then exited.

The interface has been changed to no longer block, but instead returns
a channel on which the caller can receive a *StateStatus value which
indicates the ExitCode or an error if there was one (like a context
timeout or state transition error).

These changes have been propagated through the rest of the deamon to
preserve all other existing behavior.

Docker-DCO-1.1-Signed-off-by: Josh Hawn <josh.hawn@docker.com> (github: jlhawn)
2017-05-16 15:09:14 -07:00
..
controllers/plugin add support for swarmkit generic runtime 2017-04-11 14:02:01 -04:00
convert Adding Platforms field to TaskSpec 2017-05-15 14:58:20 -07:00
executor Update Container Wait Backend 2017-05-16 15:09:14 -07:00
provider Add engine-api types to docker 2016-09-07 11:05:58 -07:00
cluster.go Fix race condition between swarm and libnetwork 2017-05-10 21:16:52 -07:00
configs.go Add config APIs 2017-05-11 10:08:21 -07:00
filters.go Add config APIs 2017-05-11 10:08:21 -07:00
filters_test.go Add config APIs 2017-05-11 10:08:21 -07:00
helpers.go Add config APIs 2017-05-11 10:08:21 -07:00
listen_addr.go Inroduce SWARM --data-path-addr flag 2017-04-26 15:33:15 -07:00
listen_addr_linux.go Add fallback to resolveSystemAddr() in linux 2016-09-09 13:27:57 -07:00
listen_addr_others.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
listen_addr_solaris.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
networks.go use make slice to store objects to improve efficiency 2017-04-14 11:02:28 +08:00
noderunner.go Fix race condition between swarm and libnetwork 2017-05-10 21:16:52 -07:00
nodes.go use make slice to store objects to improve efficiency 2017-04-14 11:02:28 +08:00
secrets.go use make slice to store objects to improve efficiency 2017-04-14 11:02:28 +08:00
services.go Change log details encoding format and support details on service logs 2017-05-12 10:53:44 -07:00
swarm.go Fix race condition between swarm and libnetwork 2017-05-10 21:16:52 -07:00
tasks.go use make slice to store objects to improve efficiency 2017-04-14 11:02:28 +08:00
utils.go Rather than remove the swarm directory and re-create, remove the swarm subdirs 2017-03-01 11:56:39 -08:00