build

package
v1.28.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Branch string

Branch allows for a queryable branch name set at build time.

Sha allows for a queryable git sha set at build time.

View Source
var Version string

Version allows for a queryable version set at build time.

Functions

func PrintBuildInfo

func PrintBuildInfo() string

PrintBuildInfo prints the build information.

Types

type BuildInfo

type BuildInfo struct {
	Branch  string `yaml:"branch,omitempty"`
	Sha     string `yaml:"sha,omitempty"`
	Version string `yaml:"version,omitempty"`
}

BuildInfo is a struct for build information. nolint:revive

Jump to

Keyboard shortcuts

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