version

package
v1.29.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.29.8"

Version is the version of the build.

Variables

This section is empty.

Functions

func ShouldCrioWipe

func ShouldCrioWipe(versionFileName string) (bool, error)

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.

Types

type Info added in v1.18.0

type Info struct {
	Version         string   `json:"version,omitempty"`
	GitCommit       string   `json:"gitCommit,omitempty"`
	GitCommitDate   string   `json:"gitCommitDate,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"`
	LDFlags         string   `json:"ldFlags,omitempty"`
	SeccompEnabled  bool     `json:"seccompEnabled"`
	AppArmorEnabled bool     `json:"appArmorEnabled"`
	Dependencies    []string `json:"dependencies,omitempty"`
}

func Get added in v1.18.0

func Get(verbose bool) (*Info, error)

func (*Info) JSONString added in v1.18.0

func (i *Info) JSONString() (string, error)

JSONString returns the JSON representation of the version info

func (*Info) LogVersion added in v1.25.0

func (i *Info) LogVersion()

LogVersion logs the version and git information of this build

func (*Info) String added in v1.18.0

func (i *Info) String() string

String returns the string representation of the version info

func (*Info) WriteVersionFile added in v1.25.0

func (i *Info) WriteVersionFile(file string) error

WriteVersionFile writes the version information to a given 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL