summaryrefslogtreecommitdiff
path: root/libpod/state.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-09-09 21:48:30 +0200
committerGitHub <noreply@github.com>2019-09-09 21:48:30 +0200
commit9a55bce9e4d7e1bb3d57dc8879e1a23f559e18ba (patch)
treeb048b0e2228fa9ae67c9a73bd4fecf1739f64d75 /libpod/state.go
parent7042a3d7a539bae79ed63bdc87f432b8ec73afd8 (diff)
parent046178e55f72ed9db7cf5898d3be91b0112ab94f (diff)
downloadpodman-9a55bce9e4d7e1bb3d57dc8879e1a23f559e18ba.tar.gz
podman-9a55bce9e4d7e1bb3d57dc8879e1a23f559e18ba.tar.bz2
podman-9a55bce9e4d7e1bb3d57dc8879e1a23f559e18ba.zip
Merge pull request #3896 from mheon/volume_lookup
Add ability to look up volumes by unambiguous partial name
Diffstat (limited to 'libpod/state.go')
-rw-r--r--libpod/state.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/state.go b/libpod/state.go
index db4667ad6..40080d2cc 100644
--- a/libpod/state.go
+++ b/libpod/state.go
@@ -190,6 +190,9 @@ type State interface {
// Volume accepts full name of volume
// If the volume doesn't exist, an error will be returned
Volume(volName string) (*Volume, error)
+ // LookupVolume accepts an unambiguous partial name or full name of a
+ // volume. Ambiguous names will result in an error.
+ LookupVolume(name string) (*Volume, error)
// HasVolume returns true if volName exists in the state,
// otherwise it returns false
HasVolume(volName string) (bool, error)