buildstamp

package
v0.0.0-...-2dfab7d Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// User is the username of the account that built the binary.
	User string

	// Host is the unqualified hostname of the machine used to build the binary.
	Host string

	// BuildTimestamp is the timestamp at which the binary was built in ISO 8601
	// format.
	BuildTimestamp string

	// Branch is the name of the git branch used to build the binary.
	Branch string

	// Commit is the git commit hash of the revision used to build the binary.
	Commit string

	// CommitTimestamp is the timestamp of the commit used to build the binary in
	// ISO 8601 format.
	CommitTimestamp string

	// ReleaseTag is the tag of the revision used to build the binary as provided
	// by `git describe`. In general, it's something like: "a968903-dirty"
	ReleaseTag string

	// VersionTagTime is the time that this version of Jetpack (CLI binary, runtime and SDK)
	// was built, and tagged.
	VersionTagTime string

	// VersionNumber is the version number in semver format MAJOR.MINOR.PATCH
	VersionNumber string

	// PrereleaseTag tells us what edition of Jetify's Pre-releases this is. Usually, "dev".
	PrereleaseTag string

	// CicdBuildRelease is set when the CLI binary was built through CICD
	CicdBuildRelease string

	// StableDockerTag is used for docker images and helm charts
	StableDockerTag string
)

ldflags will provide these values. See devtools/scripts/build/ldflags.sh for details on how they are computed.

Functions

func Get

func Get() *buildStamp

func PrintVerboseVersion

func PrintVerboseVersion(w io.Writer)

PrintVerboseVersion prints a verbose listing of the version variables to the io.Writer argument

Types

type BuildStamper

type BuildStamper interface {
	Version() string
	IsCicdReleasedBinary() bool
	IsDevBinary() bool
}

Jump to

Keyboard shortcuts

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