version

package
v0.0.0-...-ee2d30e Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ExtraSep = "-"

ExtraSep separates semver version from any extra version info

Variables

View Source
var PreReleaseID = "dev"

PreReleaseID can be empty for releases, "rc.X" for release candidates and "dev" for snapshots

View Source
var Version = "0.131.0"

Version is the version number in semver format X.Y.Z

Functions

func GetVersion

func GetVersion() string

GetVersion return the exact version of this build

func ParseEksctlVersion

func ParseEksctlVersion(raw string) (semver.Version, error)

ParseEksctlVersion parses the an eksctl version as semver while ignoring extra build metadata

func String

func String() string

String return version info as JSON

Types

type BuildMetadata

type BuildMetadata struct {
	BuildDate string
	GitCommit string
}

BuildMetadata contains the semver build metadata: short commit hash and date in format YYYYMMDDTHHmmSS

type Info

type Info struct {
	Version                    string
	PreReleaseID               string
	Metadata                   BuildMetadata
	EKSServerSupportedVersions []string
}

Info holds version information

func GetVersionInfo

func GetVersionInfo() Info

GetVersionInfo returns version Info struct

Jump to

Keyboard shortcuts

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