version

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package version provides information about app version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App added in v3.1.0

func App() string

App returns app name.

func BuildHost added in v3.2.0

func BuildHost() string

BuildHost returns host name.

func BuildTime added in v3.2.0

func BuildTime() int64

BuildTime returns Unix time when Agent was compiled.

func BuildUser added in v3.2.0

func BuildUser() string

BuildUser returns username.

func BuiltBy

func BuiltBy() string

func BuiltOn added in v3.1.0

func BuiltOn() string

func Data

func Data() (ver, rev, date string)

Data returns version data.

func Detail

func Detail() string

Detail returns string with detailed version info on separate lines.

func GitBranch added in v3.2.0

func GitBranch() string

GitBranch returns git branch name.

func GitCommit added in v3.2.0

func GitCommit() string

GitCommit returns git commit hash.

func Info

func Info() string

Info returns string with complete version info on single line.

func Short

func Short() string

func Version added in v3.1.0

func Version() string

Version returns version string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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