summaryrefslogtreecommitdiff
path: root/libpod/version.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-01-21 15:18:13 -0600
committerbaude <bbaude@redhat.com>2019-01-21 15:23:30 -0600
commit5c8e7ed0dee117c9d423849f09f82d15957893a8 (patch)
treef5244f8cabf513a409a69b72f2c97d0d0e5d996c /libpod/version.go
parentba3509665c16365870ae2c50c6798c0e8489cb78 (diff)
downloadpodman-5c8e7ed0dee117c9d423849f09f82d15957893a8.tar.gz
podman-5c8e7ed0dee117c9d423849f09f82d15957893a8.tar.bz2
podman-5c8e7ed0dee117c9d423849f09f82d15957893a8.zip
enable podman-remote version
initial enablement of podman-remote version. includes add a APIVersion const that will allow us to check compatibility between host/client when connections are made. also added client related information to podman info. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'libpod/version.go')
-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
}