1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server
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
..
backend/build Extract squash and tagging from the Dockerfile builder. 2017-05-01 12:07:32 -04:00
httputils Change log details encoding format and support details on service logs 2017-05-12 10:53:44 -07:00
middleware Hide command options that are related to Windows 2017-03-12 08:47:17 +02:00
router Update Container Wait Backend 2017-05-16 15:09:14 -07:00
middleware.go change comment 2016-08-26 18:30:41 +08:00
profiler.go Use generic handler for pprof profile lookups 2017-03-16 11:05:20 -04:00
router_swapper.go fix typos 2016-03-06 00:59:11 +08:00
server.go server.go: format for 2017-05-15 07:12:28 +08:00
server_test.go Correct fmt.Fprintf and t.Fatalf 2017-02-08 12:32:40 +08:00