release

package
v0.48.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUpstreamRelease added in v0.11.0

func CheckUpstreamRelease(ctx context.Context, client *github.Client, org, repo string, tags []string) (map[string]bool, error)

CheckUpstreamRelease takes the given org, repo, and tags and checks for the tags' existence.

func DeleteAssetByID added in v0.16.0

func DeleteAssetByID(ctx context.Context, client *github.Client, owner, repo, tag string, id int64) error

DeleteAssetByID deletes the release asset associated with the given ID.

func DeleteAssetsByRelease added in v0.16.0

func DeleteAssetsByRelease(ctx context.Context, client *github.Client, owner, repo, tag string) error

DeleteAssetsByRelease deletes all release assets for the given release tag.

func GenReleaseNotes

func GenReleaseNotes(ctx context.Context, owner, repo, milestone, prevMilestone string, client *github.Client) (*bytes.Buffer, error)

GenReleaseNotes genereates release notes based on the given milestone, previous milestone, and repository.

func KubernetesGoVersion added in v0.21.0

func KubernetesGoVersion(ctx context.Context, client *github.Client, version string) (string, error)

func LatestPreRelease added in v0.34.0

func LatestPreRelease(ctx context.Context, client *github.Client, owner, repo, version, preReleaseSuffix string) (*string, error)

func LatestRC added in v0.21.0

func LatestRC(ctx context.Context, owner, repo, k8sVersion, projectSuffix string, client *github.Client) (*string, error)

LatestRC will get the latest rc created for the k8s version in either rke2 or k3s

func ListAssets added in v0.16.0

func ListAssets(ctx context.Context, client *github.Client, owner, repo, tag string) ([]*github.ReleaseAsset, error)

ListAssets gets all assets associated with the given release.

func VerifyAssets added in v0.16.0

func VerifyAssets(ctx context.Context, client *github.Client, owner, repo string, tags []string) (map[string]bool, error)

VerifyAssets checks the number of assets for the given release and indicates if the expected number has been met.

Types

type RelStats added in v0.47.0

type RelStats struct {
	Count   int
	Monthly map[time.Month]StatsMonthly
}

RelStats

type StatsData added in v0.47.0

type StatsData struct {
	Total    int64            `json:"total"`
	Data     map[int]RelStats `json:"data"`
	Captains map[string]int   `json:"captains"`
}

StatsData

func Stats added in v0.47.0

func Stats(ctx context.Context, client *github.Client, startDate, endDate time.Time, owner, repo string) (*StatsData, error)

Stats collects and processes information regarding a set of releases for the given repo over the given period of time.

type StatsMonthly added in v0.47.0

type StatsMonthly struct {
	Count    int
	Captains []string
	Tags     []string
}

StatsMonthly

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳