summaryrefslogtreecommitdiff
path: root/libpod/adapter/runtime_remote.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-12 13:37:22 +0100
committerGitHub <noreply@github.com>2019-02-12 13:37:22 +0100
commitfaafdcf1f3509aeb83fd43729fa7c40ea360a3ea (patch)
tree3d12c6a2f9b3e4c44b8db4aa8e9f51c15575afad /libpod/adapter/runtime_remote.go
parent89237033fd38d91308ff7e5b9511aff41f44e0e8 (diff)
parent3101364a3cf00a2b2562bc2510262c3ee992bbab (diff)
downloadpodman-faafdcf1f3509aeb83fd43729fa7c40ea360a3ea.tar.gz
podman-faafdcf1f3509aeb83fd43729fa7c40ea360a3ea.tar.bz2
podman-faafdcf1f3509aeb83fd43729fa7c40ea360a3ea.zip
Merge pull request #2315 from baude/remotevolumerm
podman-remote volume rm
Diffstat (limited to 'libpod/adapter/runtime_remote.go')
-rw-r--r--libpod/adapter/runtime_remote.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/libpod/adapter/runtime_remote.go b/libpod/adapter/runtime_remote.go
index 3df8afc6e..4dfae34e1 100644
--- a/libpod/adapter/runtime_remote.go
+++ b/libpod/adapter/runtime_remote.go
@@ -449,3 +449,13 @@ func (r *LocalRuntime) CreateVolume(ctx context.Context, c *cliconfig.VolumeCrea
return iopodman.VolumeCreate().Call(r.Conn, cvOpts)
}
+
+// RemoveVolumes removes volumes over a varlink connection for the remote client
+func (r *LocalRuntime) RemoveVolumes(ctx context.Context, c *cliconfig.VolumeRmValues) ([]string, error) {
+ rmOpts := iopodman.VolumeRemoveOpts{
+ All: c.All,
+ Force: c.Force,
+ Volumes: c.InputArgs,
+ }
+ return iopodman.VolumeRemove().Call(r.Conn, rmOpts)
+}