Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsVersionString ¶
IsVersionString checks whether the given string is a version string
func TagToVersionString ¶
TagToVersionString converts an istio container tag into a version string
func TagToVersionStringGrace ¶
TagToVersionStringGrace converts an Istio container tag into a version string, if any error, fallback to use the original tag.
Types ¶
type MajorVersion ¶
type MajorVersion struct {
Major uint32
}
MajorVersion represents a major version.
func NewMajorVersion ¶
func NewMajorVersion(major uint32) MajorVersion
NewMajorVersion creates an initialized MajorVersion struct.
func (MajorVersion) String ¶
func (v MajorVersion) String() string
String implements the Stringer interface.
type MinorVersion ¶
type MinorVersion struct { MajorVersion Minor uint32 }
MinorVersion represents a minor version.
func NewMinorVersion ¶
func NewMinorVersion(major, minor uint32) MinorVersion
NewMinorVersion creates an initialized MinorVersion struct.
func (MinorVersion) String ¶
func (v MinorVersion) String() string
String implements the Stringer interface.
type PatchVersion ¶
type PatchVersion struct { MinorVersion Patch uint32 }
PatchVersion represents a patch version.
func NewPatchVersion ¶
func NewPatchVersion(major, minor, patch uint32) PatchVersion
NewPatchVersion creates an initialized PatchVersion struct.
func (PatchVersion) String ¶
func (v PatchVersion) String() string
String implements the Stringer interface.
type Version ¶
type Version struct { PatchVersion Suffix string }
Version represents a version with an optional suffix.
func NewVersion ¶
NewVersion creates an initialized Version struct.
func NewVersionFromString ¶
NewVersionFromString creates a new Version from the provided SemVer formatted string and returns a pointer to it.