Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanPCVersion ¶
CleanPCVersion normalizes a Prism Central version string by trimming whitespace, lower-casing it, and removing the optional "pc." prefix.
func ComparePCVersions ¶
ComparePCVersions compares PC version numbers of the format '2024.2.0.1', '7.3', etc. Returns 0 : if ver1 == ver2 Returns 1 : if ver1 > ver2 Returns -1: if ver1 < ver2
If either version is not in the correct format, they will be the greater, unless neither can be parsed in which case they are equal. The case where a branch can't be parsed is if the cluster is running master, or some other non-release branch. This is only expected in a test/debug situation and is the motivation for making an unparseable format greater.
func CompareVersions ¶
CompareVersions compares version numbers of the format '3.5.2.1'. Returns 0 : if v1 == v2 Returns 1 : if v1 > v2 Returns -1: if v1 < v2
If either version is not in the correct format, they will be the greater, unless neither can be parsed in which case they are equal. The case where a branch can't be parsed is if the cluster is running master, or some other non-release branch, or empty string. This is only expected in a test/debug situation and is the motivation for making an unparseable format greater.
Types ¶
This section is empty.