Documentation
¶
Overview ¶
Package version handles kubriX release tags (vX.Y.Z) and CHANGELOG.md sections.
Index ¶
- Constants
- func BreakingChanges(notes string) string
- func ChangelogBetween(changelog, from, to string) string
- func HasBreakingChanges(notes string) bool
- func IsRelease(ref string) bool
- func Normalize(v string) string
- func Releases(tags []string) []string
- func Supported(r string) bool
- func UpgradeTargets(installed string, releases []string) []string
Constants ¶
const MinSupported = "v7.0.0"
MinSupported is the oldest release the CLI bootstraps or upgrades to: its rendering mirrors install-platform.sh as of v7.0.0 (v6 also rendered docs/*.md.tmpl, v5 only selected values files).
Variables ¶
This section is empty.
Functions ¶
func BreakingChanges ¶
BreakingChanges extracts the "⚠ BREAKING CHANGES" subsections of a changelog excerpt, with their release headings.
func ChangelogBetween ¶
ChangelogBetween returns the CHANGELOG.md sections for versions in (from, to], newest first. to may be empty to include everything newer than from (e.g. for an upgrade to main).
func HasBreakingChanges ¶
HasBreakingChanges reports whether a changelog excerpt contains a breaking-changes section.
func IsRelease ¶
IsRelease reports whether ref is a kubriX release tag; anything else is treated as a branch.
func UpgradeTargets ¶
UpgradeTargets returns releases newer than installed, limited to the next major version, newest first.
Types ¶
This section is empty.