buildconsts

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Date is the date and time at which the platform was built.
	Date string

	// GitCommit is the SHA of the commit from which the platform was built.
	GitCommit string

	// GitBranch is the branch name from which the platform was built.
	GitBranch string

	// GitState indicates whether uncommitted changes were present at build
	// time.
	GitState string

	// GitSummary is the output of `git describe --tags --dirty --always` at
	// build time.
	GitSummary string

	// ProjectName is the name of the complete system, used for config
	// directories etc
	ProjectName = "nomad-toast"

	// Version of the build
	Version string
)

Functions

func GetVersion

func GetVersion() string

GetVersion is responsible for populating and returning the binary version information.

func SetProgramName

func SetProgramName(name string)

SetProgramName sets the name of the currently executing program. It should be called at the earliest opportunity (e.g. in PersistentPreRun of the root Cobra command).

Types

This section is empty.

Jump to

Keyboard shortcuts

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