version

package
v1.2.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Name is set at build time.
	Name = gendata.VersionName
	// Tag is set at build time.
	Tag = gendata.VersionTag
	// SHA is set at build time.
	SHA = gendata.VersionSHA
	// Built is set at build time.
	// TODO: its not.
	Built string
	// PkgsVersion is set at build time.
	PkgsVersion = gendata.VersionPkgs
	// ExtrasVersion is set at build time.
	ExtrasVersion = gendata.VersionExtras
)

Functions

func NewVersion

func NewVersion() *machineapi.VersionInfo

NewVersion prints verbose version information.

func PrintLongVersion

func PrintLongVersion()

PrintLongVersion prints verbose version information.

func PrintLongVersionFromExisting added in v0.3.0

func PrintLongVersionFromExisting(v *machineapi.VersionInfo)

PrintLongVersionFromExisting prints verbose version information.

func PrintShortVersion

func PrintShortVersion()

PrintShortVersion prints the tag and SHA.

func Short added in v1.0.0

func Short() string

Short returns the short version string consist of name, tag and SHA.

func WriteLongVersionFromExisting added in v0.14.0

func WriteLongVersionFromExisting(w io.Writer, v *machineapi.VersionInfo)

WriteLongVersionFromExisting writes verbose version to io.Writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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