summaryrefslogtreecommitdiff
path: root/libpod/volume.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2020-02-23 11:00:09 -0600
committerBrent Baude <bbaude@redhat.com>2020-02-27 13:11:42 -0600
commit306b44380fec7a6653baf8fa8e2929a8f0115659 (patch)
tree8affebec363f9a6a25cfbbfd6d6f58b133bd92f7 /libpod/volume.go
parent3d1af087e6beba5ac31e2c6758fd5696d6d7883f (diff)
downloadpodman-306b44380fec7a6653baf8fa8e2929a8f0115659.tar.gz
podman-306b44380fec7a6653baf8fa8e2929a8f0115659.tar.bz2
podman-306b44380fec7a6653baf8fa8e2929a8f0115659.zip
binding tests for volumes
add binding tests for volumes: inspect(get), create, remove, prune, and list implement filters ability for volumes Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/volume.go')
-rw-r--r--libpod/volume.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpod/volume.go b/libpod/volume.go
index 1ffed872e..70099d6f4 100644
--- a/libpod/volume.go
+++ b/libpod/volume.go
@@ -126,3 +126,10 @@ func (v *Volume) GID() int {
func (v *Volume) CreatedTime() time.Time {
return v.config.CreatedTime
}
+
+// Config returns the volume's configuration.
+func (v *Volume) Config() (*VolumeConfig, error) {
+ config := VolumeConfig{}
+ err := JSONDeepCopy(v.config, &config)
+ return &config, err
+}