release

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = 30 * time.Second
)

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 LatestRC added in v0.21.0

func LatestRC(ctx context.Context, owner, repo, k8sVersion, suffix 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

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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