version

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package version powers the versioning of gocd-prometheus-exporter.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version specifies the version of the application and cannot be changed by end user.
	Version string

	// Env tells end user that what variant (here we use the name of the git branch to make it simple)
	// of application is he using.
	Env string

	// BuildDate of the app.
	BuildDate string
	// GoVersion represents golang version used.
	GoVersion string
	// Platform is the combination of OS and Architecture for which the binary is built for.
	Platform string
	// Revision represents the git revision used to build the current version of app.
	Revision string
)

Functions

func AppVersion

func AppVersion(c *cli.Context) error

func GetAppVersion added in v0.1.2

func GetAppVersion() string

Types

type BuildInfo

type BuildInfo struct {
	Version     string
	Revision    string
	Environment string
	BuildDate   string
	GoVersion   string
	Platform    string
}

BuildInfo represents version of utility.

func GetBuildInfo

func GetBuildInfo() BuildInfo

GetBuildInfo return the version and other build info of the application.

Jump to

Keyboard shortcuts

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