diff options
author | Brent Baude <bbaude@redhat.com> | 2020-02-23 11:00:09 -0600 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-02-27 13:11:42 -0600 |
commit | 306b44380fec7a6653baf8fa8e2929a8f0115659 (patch) | |
tree | 8affebec363f9a6a25cfbbfd6d6f58b133bd92f7 /libpod | |
parent | 3d1af087e6beba5ac31e2c6758fd5696d6d7883f (diff) | |
download | podman-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')
-rw-r--r-- | libpod/volume.go | 7 |
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 +} |