Documentation ¶
Overview ¶
Package version provides information about the current semantic version for the Antrea project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Must follow the rules in https://semver.org/ // Does not include git / build information Version = "" // Empty if git not available GitSHA = "" // Can be "dirty", "clean" or empty (if git not available) GitTreeState = "" // Can be "unreleased" or "released"; if it is "unreleased" then we add build information to // the version in GetFullVersion ReleaseStatus = "unreleased" )
These variables are set at build-time.
Functions ¶
func GetFullVersion ¶
func GetFullVersion() string
GetFullVersion returns the version string to be displayed by Antrea binaries. It will look like "<major>.<minor>.<patch>" for released versions and "<major>.<minor>.<patch>-<SHA>[.dirty]" for unreleased versions.
func GetFullVersionWithRuntimeInfo ¶
func GetFullVersionWithRuntimeInfo() string
GetFullVersionWithRuntimeInfo returns the same version string as GetFullVersion but appends "<GOOS>/<GOARCH>", where GOOS is the running program's operating system target (e.g. darwin, linux) and GOARCH is the the running program's architecture target (e.g. amd64).
func GetVersion ¶
func GetVersion() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.