Documentation ¶
Overview ¶
Package version contains important methods and constants for github release.
Package version contains important structs and methods for cluster stack versions.
Index ¶
Constants ¶
View Source
const ( // ChannelStable is the stable channel. ChannelStable = Channel("stable") // ChannelAlpha is the alpha channel. ChannelAlpha = Channel("alpha") // ChannelBeta is the beta channel. ChannelBeta = Channel("beta") // ChannelRC is the rc channel. ChannelRC = Channel("rc") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
Version encapsulates a Version string into its constituent parts as a struct. Sample: Version string "v1-alpha-1" Major: "v1" major: 1 (int, after stripping "v" prefix) Channel: "alpha" Patch: 1.
func FromReleaseTag ¶
FromReleaseTag returns a Version struct from a release tag string.
func New ¶
New returns a Version struct from a version string Sample allowed inputs: "v1-alpha-1", "v1", "v1-alpha-0" Sample disallowed inputs: "v1-alpha", "v1-alpha-1.0", "v1-alpha-1.0.0", "v1-alpha.", "v1.0-alpha.1".
Click to show internal directories.
Click to hide internal directories.