moby--moby/api/server/router
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
..
build Add `docker build --iidfile=FILE` 2017-05-05 16:35:54 +01:00
checkpoint Use function arguments for route setup. 2017-04-12 08:43:51 -04:00
container Update Container Wait Backend 2017-05-16 15:09:14 -07:00
distribution /distribution/{name}/json returns full Descriptor object 2017-05-09 17:25:27 -07:00
image Refacator pkg/streamformatter 2017-05-02 17:38:12 -04:00
network Honor context cancellation when pruning 2017-04-24 09:11:29 -07:00
plugin Refacator pkg/streamformatter 2017-05-02 17:38:12 -04:00
swarm Add config APIs 2017-05-11 10:08:21 -07:00
system Honor context within SystemDiskUsage 2017-04-24 09:11:29 -07:00
volume Honor context cancellation when pruning 2017-04-24 09:11:29 -07:00
experimental.go router: Return explicit error rather than 404 for experimental. 2016-11-17 15:51:47 -08:00
local.go Use function arguments for route setup. 2017-04-12 08:43:51 -04:00
router.go