From 306b44380fec7a6653baf8fa8e2929a8f0115659 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Sun, 23 Feb 2020 11:00:09 -0600 Subject: 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 --- libpod/volume.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libpod/volume.go') 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 +} -- cgit v1.2.3-54-g00ecf