Documentation ¶
Index ¶
- func IsValidVersion(version string, versions []*consulmodels.HashicorpCloudConsul20200826Version) bool
- func NormalizeVersion(version string) string
- func RecommendedVersion(versions []*consulmodels.HashicorpCloudConsul20200826Version) string
- func VersionsToString(versions []*consulmodels.HashicorpCloudConsul20200826Version) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidVersion ¶
func IsValidVersion(version string, versions []*consulmodels.HashicorpCloudConsul20200826Version) bool
IsValidVersion determines that a given version string is contained within the slice of available Consul versions.
func NormalizeVersion ¶
NormalizeVersion ensures the version starts with a 'v'
func RecommendedVersion ¶
func RecommendedVersion(versions []*consulmodels.HashicorpCloudConsul20200826Version) string
RecommendedVersion returns the recommended version of Consul
func VersionsToString ¶ added in v0.2.0
func VersionsToString(versions []*consulmodels.HashicorpCloudConsul20200826Version) 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.