Documentation ¶
Index ¶
Constants ¶
const Version = "1.23.1"
Version is the version of the build.
Variables ¶
This section is empty.
Functions ¶
func LogVersion ¶ added in v1.20.0
func LogVersion()
LogVersion logs the version and git information of this build
func ShouldCrioWipe ¶
ShouldCrioWipe opens the version file, and parses it and the version string If there is a parsing error, then crio should wipe, and the error is returned. if parsing is successful, it compares the major and minor versions and returns whether the major and minor versions are the same. If they differ, then crio should wipe.
func WriteVersionFile ¶
WriteVersionFile writes the version information to a given file file is the location of the old version file gitCommit is the current git commit version. It will be added to the file to aid in debugging, but will not be used to compare versions
Types ¶
type Info ¶ added in v1.18.0
type Info struct { Version string `json:"version,omitempty"` GitCommit string `json:"gitCommit,omitempty"` GitTreeState string `json:"gitTreeState,omitempty"` BuildDate string `json:"buildDate,omitempty"` GoVersion string `json:"goVersion,omitempty"` Compiler string `json:"compiler,omitempty"` Platform string `json:"platform,omitempty"` Linkmode string `json:"linkmode,omitempty"` BuildTags []string `json:"buildTags,omitempty"` SeccompEnabled bool `json:"seccompEnabled"` AppArmorEnabled bool `json:"appArmorEnabled"` }
func (*Info) JSONString ¶ added in v1.18.0
JSONString returns the JSON representation of the version info