version

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Litekube     = "v0.2.0"
	GitBranch    = "default-main" // branch of git
	GitVersion   = "v2.25.1"
	GitCommit    = "$HEAD"                 // sha1 from git, output of $(git rev-parse HEAD)
	GitTreeState = "clean"                 // state of git tree, either "clean" or "dirty"
	BuildDate    = "2022-04-10 T00:00:00Z" // build date in ISO8601 format, output of $(date -u +'%Y-%m-%dT%H:%M:%SZ')
	Kubernetes   = "v1.24.0"
	Kine         = "v0.9.0"
)

Functions

func GetSimple

func GetSimple() string

Types

type Info

type Info struct {
	LiteKube     string `json:"litekube"`
	GitVersion   string `json:"gitVersion"`
	GitBranch    string `json:"gitBranch"`
	GitCommit    string `json:"gitCommit"`
	GitTreeState string `json:"gitTreeState"`
	BuildDate    string `json:"buildDate"`
	GoVersion    string `json:"goVersion"`
	Compiler     string `json:"compiler"`
	Platform     string `json:"platform"`
	Kubernetes   string `json:"kubernetes"`
	Kine         string `json:"kine"`
}

func Get

func Get() Info

Get returns the overall codebase version. It's for detecting what code a binary was built from.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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