summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-01-22 15:28:19 +0100
committerGitHub <noreply@github.com>2019-01-22 15:28:19 +0100
commit7838a13b61ee893a6dad5cf4cc4e36c5ab74b855 (patch)
tree84f0df8442d5fd412c9b2838260e9d5cc16c989b /libpod
parentec969875fa13e90f4ce696e9d24b86a02f79f54a (diff)
parent5c8e7ed0dee117c9d423849f09f82d15957893a8 (diff)
downloadpodman-7838a13b61ee893a6dad5cf4cc4e36c5ab74b855.tar.gz
podman-7838a13b61ee893a6dad5cf4cc4e36c5ab74b855.tar.bz2
podman-7838a13b61ee893a6dad5cf4cc4e36c5ab74b855.zip
Merge pull request #2199 from baude/remoteversion
enable podman-remote version
Diffstat (limited to 'libpod')
-rw-r--r--libpod/version.go22
1 files changed, 12 insertions, 10 deletions
diff --git a/libpod/version.go b/libpod/version.go
index 966588ae9..d2b99a275 100644
--- a/libpod/version.go
+++ b/libpod/version.go
@@ -19,11 +19,12 @@ var (
//Version is an output struct for varlink
type Version struct {
- Version string
- GoVersion string
- GitCommit string
- Built int64
- OsArch string
+ RemoteAPIVersion int64
+ Version string
+ GoVersion string
+ GitCommit string
+ Built int64
+ OsArch string
}
// GetVersion returns a VersionOutput struct for varlink and podman
@@ -39,10 +40,11 @@ func GetVersion() (Version, error) {
}
}
return Version{
- Version: podmanVersion.Version,
- GoVersion: runtime.Version(),
- GitCommit: gitCommit,
- Built: buildTime,
- OsArch: runtime.GOOS + "/" + runtime.GOARCH,
+ RemoteAPIVersion: podmanVersion.RemoteAPIVersion,
+ Version: podmanVersion.Version,
+ GoVersion: runtime.Version(),
+ GitCommit: gitCommit,
+ Built: buildTime,
+ OsArch: runtime.GOOS + "/" + runtime.GOARCH,
}, nil
}