diff options
author | Sujil02 <sushah@redhat.com> | 2020-04-29 22:41:56 -0400 |
---|---|---|
committer | Sujil02 <sushah@redhat.com> | 2020-05-01 13:57:16 -0400 |
commit | b94862171b29dbef4cd780e4b1746d97f62f7a94 (patch) | |
tree | 6d64486633a4ebc208f31431c81f1932ade979f4 /pkg/domain/infra/abi/volumes.go | |
parent | 2f3762eb911258016581187f072a24ac2724be3b (diff) | |
download | podman-b94862171b29dbef4cd780e4b1746d97f62f7a94.tar.gz podman-b94862171b29dbef4cd780e4b1746d97f62f7a94.tar.bz2 podman-b94862171b29dbef4cd780e4b1746d97f62f7a94.zip |
And system prune feature for v2.
Adds podman system prune for v2.
Refactoring for code reuse from pods containers images and volume prune.
Adds and enables testcases to support the added feature.
Signed-off-by: Sujil02 <sushah@redhat.com>
Diffstat (limited to 'pkg/domain/infra/abi/volumes.go')
-rw-r--r-- | pkg/domain/infra/abi/volumes.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/domain/infra/abi/volumes.go b/pkg/domain/infra/abi/volumes.go index bdae4359d..91b2440df 100644 --- a/pkg/domain/infra/abi/volumes.go +++ b/pkg/domain/infra/abi/volumes.go @@ -1,5 +1,3 @@ -// +build ABISupport - package abi import ( @@ -113,6 +111,10 @@ func (ic *ContainerEngine) VolumeInspect(ctx context.Context, namesOrIds []strin } func (ic *ContainerEngine) VolumePrune(ctx context.Context, opts entities.VolumePruneOptions) ([]*entities.VolumePruneReport, error) { + return ic.pruneVolumesHelper(ctx) +} + +func (ic *ContainerEngine) pruneVolumesHelper(ctx context.Context) ([]*entities.VolumePruneReport, error) { var ( reports []*entities.VolumePruneReport ) |