releases

package
v0.0.0-...-a4b4531 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Release123 = mustParse("1.23")
	Release122 = mustParse("1.22")
	Release121 = mustParse("1.21")
	Release120 = mustParse("1.20")
)

List of currently supported releases

Functions

This section is empty.

Types

type ByVersion

type ByVersion []*SupportedRelease

ByVersion type is a list of supported releases

func (ByVersion) Len

func (s ByVersion) Len() int

func (ByVersion) Less

func (s ByVersion) Less(i, j int) bool

func (ByVersion) Swap

func (s ByVersion) Swap(i, j int)

type SupportedRelease

type SupportedRelease semver.Version

SupportedRelease defines supported releases

func GetAllKymaReleases

func GetAllKymaReleases() []*SupportedRelease

GetAllKymaReleases returns all supported kyma release branches

func GetKymaReleasesBetween

func GetKymaReleasesBetween(firstRelease *SupportedRelease, lastRelease *SupportedRelease) []*SupportedRelease

GetKymaReleasesBetween filters all available releases later or the same as the given one

func GetKymaReleasesSince

func GetKymaReleasesSince(firstRelease *SupportedRelease) []*SupportedRelease

GetKymaReleasesSince filters all available releases later or the same as the given one

func GetKymaReleasesUntil

func GetKymaReleasesUntil(lastRelease *SupportedRelease) []*SupportedRelease

GetKymaReleasesUntil filters all available releases earlier or the same as the given one

func GetNextKymaRelease

func GetNextKymaRelease() *SupportedRelease

GetNextKymaRelease returns the version of kyma currently under development

func (*SupportedRelease) Branch

func (r *SupportedRelease) Branch() string

Branch returns a git branch for this release

func (*SupportedRelease) Compare

func (r *SupportedRelease) Compare(other *SupportedRelease) int

Compare compares this version to another one. It returns -1, 0, or 1 if the version smaller, equal, or larger than the other version.

func (*SupportedRelease) IsNotNewerThan

func (r *SupportedRelease) IsNotNewerThan(other *SupportedRelease) bool

IsNotNewerThan compares releases and returns true if the release is newer than the one provided.

func (*SupportedRelease) IsNotOlderThan

func (r *SupportedRelease) IsNotOlderThan(other *SupportedRelease) bool

IsNotOlderThan compares releases and returns true if the release is older than the one provided.

func (*SupportedRelease) JobPrefix

func (r *SupportedRelease) JobPrefix() string

JobPrefix returns a prefix for all jobs for this release

func (*SupportedRelease) String

func (r *SupportedRelease) String() string

String returns formatted release

Jump to

Keyboard shortcuts

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