moby--moby/daemon/cluster/executor/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
..
adapter.go Update Container Wait Backend 2017-05-16 15:09:14 -07:00
attachment.go Add config support to executor backend 2017-05-11 10:08:21 -07:00
container.go services: Add support for Credential Spec and SELinux 2017-04-07 11:30:54 -07:00
controller.go Update Container Wait Backend 2017-05-16 15:09:14 -07:00
errors.go Remove redundant format 2016-12-27 21:46:52 +08:00
executor.go Add config support to executor backend 2017-05-11 10:08:21 -07:00
health_test.go Remove redundant format 2016-12-27 21:46:52 +08:00
validate.go cluster/executor: check mounts at start 2017-02-06 13:09:53 -08:00
validate_test.go cluster/executor: check mounts at start 2017-02-06 13:09:53 -08:00
validate_unix_test.go cluster/executor: check mounts at start 2017-02-06 13:09:53 -08:00
validate_windows_test.go cluster/executor: check mounts at start 2017-02-06 13:09:53 -08:00