moby--moby/container
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
..
stream Resolve race conditions in attach API call 2017-02-01 09:01:36 +00:00
archive.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
container.go Add config support to executor backend 2017-05-11 10:08:21 -07:00
container_linux.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
container_notlinux.go support custom paths for secrets 2017-05-10 10:23:07 -07:00
container_unit_test.go support custom paths for secrets 2017-05-10 10:23:07 -07:00
container_unix.go Add config support to executor backend 2017-05-11 10:08:21 -07:00
container_windows.go Add Windows secrets support 2017-05-16 11:30:06 -07:00
env.go Move ReplaceOrAppendEnvValues to container package 2016-12-21 22:42:39 +01:00
env_test.go api: clarify that Env var without `=` is removed from the environment 2017-03-08 04:27:25 +00:00
health.go Fix deadlock on cancelling healthcheck 2016-11-15 20:10:16 -08:00
history.go Release memoryStore locks before filter/apply 2016-05-23 11:45:04 -07:00
memory_store.go Add functional support for Docker sub commands on Solaris 2016-11-07 09:06:34 -08:00
memory_store_test.go Fix some output information for container test 2016-11-24 20:01:00 +08:00
monitor.go Move `StreamConfig` out of `runconfig` 2016-11-14 15:15:09 -05:00
mounts_unix.go
mounts_windows.go
state.go Update Container Wait Backend 2017-05-16 15:09:14 -07:00
state_solaris.go Re-export container state's ExitCode and Error fields 2016-08-30 14:17:09 -07:00
state_test.go Update Container Wait Backend 2017-05-16 15:09:14 -07:00
state_unix.go Re-export container state's ExitCode and Error fields 2016-08-30 14:17:09 -07:00
state_windows.go Re-export container state's ExitCode and Error fields 2016-08-30 14:17:09 -07:00
store.go