mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
cfdf84d5d0
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) |
||
---|---|---|
.. | ||
command | ||
parser | ||
bflag.go | ||
bflag_test.go | ||
buildargs.go | ||
buildargs_test.go | ||
builder.go | ||
builder_test.go | ||
builder_unix.go | ||
builder_windows.go | ||
dispatchers.go | ||
dispatchers_test.go | ||
dispatchers_unix.go | ||
dispatchers_unix_test.go | ||
dispatchers_windows.go | ||
dispatchers_windows_test.go | ||
envVarTest | ||
evaluator.go | ||
evaluator_test.go | ||
evaluator_unix.go | ||
evaluator_windows.go | ||
imagecontext.go | ||
internals.go | ||
internals_test.go | ||
internals_unix.go | ||
internals_windows.go | ||
internals_windows_test.go | ||
metrics.go | ||
mockbackend_test.go | ||
shell_parser.go | ||
shell_parser_test.go | ||
support.go | ||
support_test.go | ||
utils_test.go | ||
wordsTest |