version

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 9 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

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

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

func LogVersionToLogger(log logd.Logger)

func UserAgent added in v1.9.0

func UserAgent() string

Types

type SemanticVersion

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

func ExtractSemanticVersion

func ExtractSemanticVersion(versionString string) (SemanticVersion, error)

func (SemanticVersion) String

func (version SemanticVersion) String() string

Jump to

Keyboard shortcuts

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