version

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is set during binary building (git revision number)
	Version string
	// BuildTime is set during binary building
	BuildTime string
)

Functions

func Command

func Command() *cobra.Command

Command creates version command

func RegisterHandler

func RegisterHandler(mu *http.ServeMux, logger *zap.Logger)

RegisterHandler registers version handler to /version

func Set added in v1.5.0

func Set(version, buildTime string)

Types

type Info

type Info struct {
	Version   string `json:"version"`
	BuildTime string `json:"buildTime"`
}

Info holds build information

func Get

func Get() Info

Get creates and initialized Info object

Jump to

Keyboard shortcuts

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