summaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorJohn Matthews <jwmatthews@gmail.com>2022-03-29 17:37:27 -0400
committerJohn Matthews <jwmatthews@gmail.com>2022-03-29 18:10:59 -0400
commit1ffcc4a8883b099e379a60c367e8a662c0e2c782 (patch)
tree72c671652093a8d74c4df39336b7df466f6d3ce6 /libpod/define
parentc319edaaf8013d8397c5847a761f53e68536635a (diff)
downloadpodman-1ffcc4a8883b099e379a60c367e8a662c0e2c782.tar.gz
podman-1ffcc4a8883b099e379a60c367e8a662c0e2c782.tar.bz2
podman-1ffcc4a8883b099e379a60c367e8a662c0e2c782.zip
Add 'Os' to be queried via 'version' output
Signed-off-by: John Matthews <jwmatthews@gmail.com>
Diffstat (limited to 'libpod/define')
-rw-r--r--libpod/define/version.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/define/version.go b/libpod/define/version.go
index 039b0ff27..2c17e6e92 100644
--- a/libpod/define/version.go
+++ b/libpod/define/version.go
@@ -27,6 +27,7 @@ type Version struct {
BuiltTime string
Built int64
OsArch string
+ Os string
}
// GetVersion returns a VersionOutput struct for API and podman
@@ -49,5 +50,6 @@ func GetVersion() (Version, error) {
BuiltTime: time.Unix(buildTime, 0).Format(time.ANSIC),
Built: buildTime,
OsArch: runtime.GOOS + "/" + runtime.GOARCH,
+ Os: runtime.GOOS,
}, nil
}