3 // WaitCondition is a type used to specify a container state for which
5 type WaitCondition string
7 // Possible WaitCondition Values.
9 // WaitConditionNotRunning (default) is used to wait for any of the non-running
10 // states: "created", "exited", "dead", "removing", or "removed".
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
17 // WaitConditionRemoved is used to wait for the container to be removed.
19 WaitConditionNotRunning WaitCondition = "not-running"
20 WaitConditionNextExit WaitCondition = "next-exit"
21 WaitConditionRemoved WaitCondition = "removed"