version

package
v0.0.0-...-686bfca Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version is the complete CCE version string including Go version.

Functions

func Base64

func Base64() (string, error)

Base64 returns the version in a base64 format.

func GetKernelVersion

func GetKernelVersion() (semver.Version, error)

GetKernelVersion returns the version of the Linux kernel running on this host.

Types

type CCEVersion

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

CCEVersion provides a minimal structure to the version string

func FromString

func FromString(versionString string) CCEVersion

FromString converts a version string into struct

func GetCCEVersion

func GetCCEVersion() CCEVersion

GetCCEVersion returns a initialized CCEVersion structure

Jump to

Keyboard shortcuts

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