Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidVersion ¶
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 ¶
RecommendedVersion returns the recommended version of Consul
Types ¶
type Version ¶
type Version struct { // Version is the Consul product version. Version string `json:"version"` // Status denotes the availability (and whether the version is recommended) of the associated Consul version. Status string `json:"status"` }
Version represents a Consul version and the status of that version in regards to availability on HCP.
func FromAMAVersions ¶
func FromAMAVersions(amaVersions []*models.HashicorpCloudConsulamaAmaVersion) []Version
FromAMAVersions converts a slice of *HashicorpCloudConsulamaAmaVersion to a slice of Version.
Click to show internal directories.
Click to hide internal directories.