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 ¶
IsDowngrade parses prev and curr, and returns true when curr is a older version than prev.
func LogVersionToLogger ¶
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
Click to show internal directories.
Click to hide internal directories.