consul

package
v0.62.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL