diff options
author | Anders F Björklund <anders.f.bjorklund@gmail.com> | 2021-09-13 22:00:12 +0200 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-09-16 11:00:05 -0400 |
commit | 901cf71a6091e2a556a52f89c62ca446dbc5cd06 (patch) | |
tree | fa6cee885cd8cafec89f2c0146563ad0d7be770b /libpod/define/info.go | |
parent | 507000a304b34850c358d75af3f6291ed444c8f6 (diff) | |
download | podman-901cf71a6091e2a556a52f89c62ca446dbc5cd06.tar.gz podman-901cf71a6091e2a556a52f89c62ca446dbc5cd06.tar.bz2 podman-901cf71a6091e2a556a52f89c62ca446dbc5cd06.zip |
Show variant and codename of the distribution
Along with the name (id) and the version(_id)
But only show the information if is available
Examples: Fedora CoreOS, Ubuntu Focal
[NO TESTS NEEDED]
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
Diffstat (limited to 'libpod/define/info.go')
-rw-r--r-- | libpod/define/info.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/define/info.go b/libpod/define/info.go index 73df80087..f4aa0031c 100644 --- a/libpod/define/info.go +++ b/libpod/define/info.go @@ -78,7 +78,9 @@ type IDMappings struct { // for libpod type DistributionInfo struct { Distribution string `json:"distribution"` + Variant string `json:"variant,omitempty"` Version string `json:"version"` + Codename string `json:"codename,omitempty"` } // ConmonInfo describes the conmon executable being used |