buildinfo

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Binary

func Binary() string

Binary returns the name of the binary.

func Branch

func Branch() string

Branch returns the branch from which the binary was built.

func BuildTime

func BuildTime() time.Time

BuildTime returns the time the binary was built.

func Collector

func Collector() prometheus.Collector

Collector returns a collector for build info metrics.

func Log added in v0.4.0

func Log(logger logr.Logger)

Log logs info about the process, build, and runtime to the logger.

func Print

func Print() string

Print returns a string containing build information.

func Repo

func Repo() string

Repo returns the repo from which the binary was built.

func Revision

func Revision() string

Revision returns the revision from which the binary was built.

func Version

func Version() string

Version returns the version of the binary.

Types

This section is empty.

Jump to

Keyboard shortcuts

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