Documentation ¶
Index ¶
- func GetLatestPatch(version string, versions []*consulmodels.HashicorpCloudConsul20210204Version) string
- func IsValidVersion(version string, versions []*consulmodels.HashicorpCloudConsul20210204Version) bool
- func RecommendedVersion(versions []*consulmodels.HashicorpCloudConsul20210204Version) string
- func VersionsToString(versions []*consulmodels.HashicorpCloudConsul20210204Version) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLatestPatch ¶ added in v0.48.0
func GetLatestPatch(version string, versions []*consulmodels.HashicorpCloudConsul20210204Version) string
GetLatestPatch parses a list of version strings and returns the latest patch version if one is found.
E.g. Given the following slice of versions: ["1.11.1", "1.12.2", "1.13.2", "1.13.3", "1.14.0"] GetLatestPatch("1.13.1", versions) would return "1.13.3" GetLatestPatch("1.10.1", versions) would return ""
func IsValidVersion ¶
func IsValidVersion(version string, versions []*consulmodels.HashicorpCloudConsul20210204Version) bool
IsValidVersion determines that a given version string is contained within the slice of available Consul versions.
func RecommendedVersion ¶
func RecommendedVersion(versions []*consulmodels.HashicorpCloudConsul20210204Version) string
RecommendedVersion returns the recommended version of Consul
func VersionsToString ¶ added in v0.2.0
func VersionsToString(versions []*consulmodels.HashicorpCloudConsul20210204Version) string
VersionsToString converts a slice of version pointers to a string of their comma delimited values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.