waitcondition.go 866 B

12345678910111213141516171819202122
  1. package container // import "github.com/docker/docker/api/types/container"
  2. // WaitCondition is a type used to specify a container state for which
  3. // to wait.
  4. type WaitCondition string
  5. // Possible WaitCondition Values.
  6. //
  7. // WaitConditionNotRunning (default) is used to wait for any of the non-running
  8. // states: "created", "exited", "dead", "removing", or "removed".
  9. //
  10. // WaitConditionNextExit is used to wait for the next time the state changes
  11. // to a non-running state. If the state is currently "created" or "exited",
  12. // this would cause Wait() to block until either the container runs and exits
  13. // or is removed.
  14. //
  15. // WaitConditionRemoved is used to wait for the container to be removed.
  16. const (
  17. WaitConditionNotRunning WaitCondition = "not-running"
  18. WaitConditionNextExit WaitCondition = "next-exit"
  19. WaitConditionRemoved WaitCondition = "removed"
  20. )