version

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: BSD-3-Clause-Clear Imports: 8 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VERSION string

VERSION has the current software version (set in the build process)

Functions

func CheckVersion added in v0.2.12

func CheckVersion(version, minimumVersion string) bool

func RegisterMetric

func RegisterMetric(name string, registry prometheus.Registerer)

func Version

func Version() string

func VersionCmd

func VersionCmd(name string) *cobra.Command

Types

type Info

type Info struct {
	Version     string `json:",omitempty"`
	GitRev      string `json:",omitempty"`
	GitRevShort string `json:",omitempty"`
	BuildTime   string `json:",omitempty"`
}

func VersionInfo

func VersionInfo() Info

Jump to

Keyboard shortcuts

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