package version
import "github.com/prometheus/common/version"
Index ¶
- Variables
- func BuildContext() string
- func ComponentUserAgent(component string) string
- func GetRevision() string
- func GetTags() string
- func Info() string
- func Print(program string) string
- func PrometheusUserAgent() string
Variables ¶
var ( Version string Revision string Branch string BuildUser string BuildDate string GoVersion = runtime.Version() GoOS = runtime.GOOS GoArch = runtime.GOARCH )
Build information. Populated at build-time.
Functions ¶
func BuildContext ¶
func BuildContext() string
BuildContext returns goVersion, platform, buildUser and buildDate information.
func ComponentUserAgent ¶
func GetRevision ¶
func GetRevision() string
func GetTags ¶
func GetTags() string
func Info ¶
func Info() string
Info returns version, branch and revision information.
func Print ¶
Print returns version information.
func PrometheusUserAgent ¶
func PrometheusUserAgent() string
Source Files ¶
- Version
- v0.63.0 (latest)
- Published
- Mar 13, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 1 hour ago –
Tools for package owners.