blob: 64820fe3583fad8a3b81b6e2ead2c25369784412 [file] [log] [blame]
David K. Bainbridge215e0242017-09-05 23:18:24 -07001package container
2
3// WaitCondition is a type used to specify a container state for which
4// to wait.
5type WaitCondition string
6
7// Possible WaitCondition Values.
8//
9// WaitConditionNotRunning (default) is used to wait for any of the non-running
10// states: "created", "exited", "dead", "removing", or "removed".
11//
12// WaitConditionNextExit is used to wait for the next time the state changes
13// to a non-running state. If the state is currently "created" or "exited",
14// this would cause Wait() to block until either the container runs and exits
15// or is removed.
16//
17// WaitConditionRemoved is used to wait for the container to be removed.
18const (
19 WaitConditionNotRunning WaitCondition = "not-running"
20 WaitConditionNextExit WaitCondition = "next-exit"
21 WaitConditionRemoved WaitCondition = "removed"
22)