version

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// AppName contains the name of the application
	AppName = "dynatrace-operator"

	// Version contains the version of the Operator. Assigned externally.
	Version = "snapshot"

	// Commit indicates the Git commit hash the binary was build from. Assigned externally.
	Commit = ""

	// BuildDate is the date when the binary was build. Assigned externally.
	BuildDate = ""
)

Functions

func CompareSemanticVersions added in v0.7.0

func CompareSemanticVersions(a SemanticVersion, b SemanticVersion) int

CompareSemanticVersions returns:

	0: if a == b
 n > 0: if a > b
 n < 0: if a < b
 0 with error: if a == nil || b == nil

func LogVersion

func LogVersion()

LogVersion logs metadata about the Operator.

func NeedsUpgradeRaw added in v0.7.0

func NeedsUpgradeRaw(prev string, curr string) (bool, error)

NeedsUpgradeRaw parses prev and curr, and returns true when curr is a newer version than prev, or false if they are the same. In case curr is older than prev an error is returned.

Types

type SemanticVersion added in v0.7.0

type SemanticVersion struct {
	// contains filtered or unexported fields
}

func ExtractSemanticVersion added in v0.7.0

func ExtractSemanticVersion(versionString string) (SemanticVersion, error)

func (SemanticVersion) String added in v0.7.0

func (version SemanticVersion) String() string

Jump to

Keyboard shortcuts

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