buildinfo

package
v1.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package buildinfo holds build-time information like the velero version. This is a separate package so that other packages can import it without worrying about introducing circular dependencies.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the current version of Velero plugins, set by the go linker's -X flag at build time.
	Version string

	// Registry is the current registry of image of Velero plugins, set by the go linker's -X flag at build time.
	Registry string

	// GitSHA is the actual commit that is being built, set by the go linker's -X flag at build time.
	GitSHA string

	// GitTreeState indicates if the git tree is clean or dirty, set by the go linker's -X flag at build
	// time.
	GitTreeState string
)

Functions

func FormattedGitSHA

func FormattedGitSHA() string

FormattedGitSHA renders the Git SHA with an indicator of the tree state.

Types

This section is empty.

Jump to

Keyboard shortcuts

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