summaryrefslogtreecommitdiff
path: root/libpod/volume_internal_linux.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2019-10-28 13:09:01 -0400
committerMatthew Heon <mheon@redhat.com>2019-10-28 13:09:01 -0400
commit5f8bf3d07d94d58465dfa494f7720ca23b8d4c6f (patch)
tree179049da0c4d6664d2d4308fd6069bae8b929d03 /libpod/volume_internal_linux.go
parentac73fd3fe5dcbf2647d589f9c9f37fe9531ed663 (diff)
downloadpodman-5f8bf3d07d94d58465dfa494f7720ca23b8d4c6f.tar.gz
podman-5f8bf3d07d94d58465dfa494f7720ca23b8d4c6f.tar.bz2
podman-5f8bf3d07d94d58465dfa494f7720ca23b8d4c6f.zip
Add ensureState helper for checking container state
We have a lot of checks for container state scattered throughout libpod. Many of these need to ensure the container is in one of a given set of states so an operation may safely proceed. Previously there was no set way of doing this, so we'd use unique boolean logic for each one. Introduce a helper to standardize state checks. Note that this is only intended to replace checks for multiple states. A simple check for one state (ContainerStateRunning, for example) should remain a straight equality, and not use this new helper. Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/volume_internal_linux.go')
0 files changed, 0 insertions, 0 deletions