summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-01 21:08:50 +0200
committerGitHub <noreply@github.com>2020-05-01 21:08:50 +0200
commitbffd3f5134b6c64dc53b7713bd064a9edd3ee466 (patch)
treee50040bd5304f82542c5d8e51cfff98ac8ffbdb9 /pkg/domain/infra/tunnel
parent95b9b72c0c0c6904ca35c97c76ee728b1750bf84 (diff)
parentb94862171b29dbef4cd780e4b1746d97f62f7a94 (diff)
downloadpodman-bffd3f5134b6c64dc53b7713bd064a9edd3ee466.tar.gz
podman-bffd3f5134b6c64dc53b7713bd064a9edd3ee466.tar.bz2
podman-bffd3f5134b6c64dc53b7713bd064a9edd3ee466.zip
Merge pull request #6060 from sujil02/systemprune-v2
And system prune feature for v2.
Diffstat (limited to 'pkg/domain/infra/tunnel')
-rw-r--r--pkg/domain/infra/tunnel/system.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/system.go b/pkg/domain/infra/tunnel/system.go
index 97bf885e7..18cb6c75a 100644
--- a/pkg/domain/infra/tunnel/system.go
+++ b/pkg/domain/infra/tunnel/system.go
@@ -3,6 +3,7 @@ package tunnel
import (
"context"
"errors"
+ "fmt"
"github.com/containers/libpod/libpod/define"
"github.com/containers/libpod/pkg/bindings/system"
@@ -21,3 +22,9 @@ func (ic *ContainerEngine) VarlinkService(_ context.Context, _ entities.ServiceO
func (ic *ContainerEngine) SetupRootless(_ context.Context, cmd *cobra.Command) error {
panic(errors.New("rootless engine mode is not supported when tunneling"))
}
+
+// SystemPrune prunes unused data from the system.
+func (ic *ContainerEngine) SystemPrune(ctx context.Context, options entities.SystemPruneOptions) (*entities.SystemPruneReport, error) {
+ fmt.Println("in tunnel")
+ return system.Prune(ic.ClientCxt, &options.All, &options.Volume)
+}