version

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

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 GetGitSHA

func GetGitSHA() string

func GetVersion

func GetVersion() semver.Version

Types

This section is empty.

Jump to

Keyboard shortcuts

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