cmd

package
v5.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version   = "dev"
	Commit    = "none"
	Date      = "unknown"
	GoVersion = runtime.Version()
)

Set via compiler flags

View Source
var (
	BuildInfo = prometheus.NewGaugeFunc(
		prometheus.GaugeOpts{
			Name: "theatre_build_info",
			Help: "A metric with a constant '1' value labeled by version, commit, goversion from which %s was built, and the goos and goarch for the build.",
			ConstLabels: prometheus.Labels{
				"version":   Version,
				"commit":    Commit,
				"goversion": GoVersion,
				"goos":      runtime.GOOS,
				"goarch":    runtime.GOARCH,
			},
		},
		func() float64 { return 1 },
	)
)

Functions

func NewCommonOptions

func NewCommonOptions(cmd *kingpin.Application) *commonOptions

func VersionStanza

func VersionStanza() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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