Documentation ¶
Overview ¶
Package version defines the version of the agent
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AgentVersion string
AgentVersion contains the version of the Agent. It is populated at build time using build flags, see get_version_ldflags in tasks/utils.py
View Source
var Commit string
Commit is populated with the short commit hash from which the Agent was built
Functions ¶
This section is empty.
Types ¶
type Version ¶
Version holds SemVer infos for the agent and friends
func New ¶
New parses a version string like `0.0.0` and a commit identifier and returns a Version instance
func (*Version) GetNumber ¶
GetNumber returns a string containing version numbers only, e.g. `0.0.0`
func (*Version) GetNumberAndPre ¶
GetNumberAndPre returns a string containing version number and the pre only, e.g. `0.0.0-beta.1`
Click to show internal directories.
Click to hide internal directories.