version

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: Apache-2.0 Imports: 3 Imported by: 79

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version is set during build

Functions

func Base64 added in v0.15.7

func Base64() (string, error)

Base64 returns the version in a base64 format.

Types

type CiliumVersion added in v0.15.7

type CiliumVersion struct {
	// Version is the semantic version of Cilium
	Version string
	// Revision is the short SHA from the last commit
	Revision string
	// GoRuntimeVersion is the Go version used to run Cilium
	GoRuntimeVersion string
	// Arch is the architecture where Cilium was compiled
	Arch string
	// AuthorDate is the git author time reference stored as string ISO 8601 formatted
	AuthorDate string
}

CiliumVersion provides a minimal structure to the version string

func FromString added in v0.15.7

func FromString(versionString string) CiliumVersion

FromString converts a version string into struct

func GetCiliumVersion added in v0.15.7

func GetCiliumVersion() CiliumVersion

GetCiliumVersion returns a initialized CiliumVersion structure

Jump to

Keyboard shortcuts

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