summaryrefslogtreecommitdiff
path: root/pkg/adapter/volumes_remote.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-02-24 03:13:25 +0100
committerGitHub <noreply@github.com>2019-02-24 03:13:25 +0100
commitcc4adddeb77ef38ecd36be04e95685b2e7b8b86c (patch)
tree9dffece816ad32c2c0b7651cb7c88be70954a88f /pkg/adapter/volumes_remote.go
parent8e4be923b83aadfaa58569326119890ed9c1d459 (diff)
parent4bf973a9f61eae3b02925a42ccfa784baeb917dc (diff)
downloadpodman-cc4adddeb77ef38ecd36be04e95685b2e7b8b86c.tar.gz
podman-cc4adddeb77ef38ecd36be04e95685b2e7b8b86c.tar.bz2
podman-cc4adddeb77ef38ecd36be04e95685b2e7b8b86c.zip
Merge pull request #2413 from baude/remotepodstop
Enable more podman-remote pod commands
Diffstat (limited to 'pkg/adapter/volumes_remote.go')
-rw-r--r--pkg/adapter/volumes_remote.go33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkg/adapter/volumes_remote.go b/pkg/adapter/volumes_remote.go
new file mode 100644
index 000000000..beacd943a
--- /dev/null
+++ b/pkg/adapter/volumes_remote.go
@@ -0,0 +1,33 @@
+// +build remoteclient
+
+package adapter
+
+// Name returns the name of the volume
+func (v *Volume) Name() string {
+ return v.config.Name
+}
+
+//Labels returns the labels for a volume
+func (v *Volume) Labels() map[string]string {
+ return v.config.Labels
+}
+
+// Driver returns the driver for the volume
+func (v *Volume) Driver() string {
+ return v.config.Driver
+}
+
+// Options returns the options a volume was created with
+func (v *Volume) Options() map[string]string {
+ return v.config.Options
+}
+
+// MountPath returns the path the volume is mounted to
+func (v *Volume) MountPoint() string {
+ return v.config.MountPoint
+}
+
+// Scope returns the scope for an adapter.volume
+func (v *Volume) Scope() string {
+ return v.config.Scope
+}