version

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 8 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 AreDevBuildsInTheSameSprint added in v0.12.0

func AreDevBuildsInTheSameSprint(a SemanticVersion, b SemanticVersion) bool

AreDevBuildsInTheSameSprint returns:

true:  if both versions describe the same sprint and DEV phase (release == 0)
false: otherwise

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 IsDowngrade added in v0.11.0

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

IsDowngrade parses prev and curr, and returns true when curr is a older version than prev

func LogVersion

func LogVersion()

LogVersion logs metadata about the Operator.

func LogVersionToLogger added in v0.11.0

func LogVersionToLogger(log logr.Logger)

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