Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUpgradeVersions ¶
func GetUpgradeVersions(ctx context.Context, repoName string) (*versionutils.Version, *versionutils.Version, error)
GetUpgradeVersions returns two semantic versions of a repository:
- prevLtsRelease: the latest patch release of v1.m-1.x
- latestRelease: the latest patch release of v1.m.x
Originally intended for use in upgrade testing, it can return any of:
- (prevLtsRelease, latestRelease, nil): all release versions computable
- (prevLtsRelease, nil, nil): only prevLtsRelease computable (ie current branch has never been released)
- (nil, nil, err): unable to fetch versions for upgrade test
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.