Documentation ¶
Index ¶
- Constants
- func CheckUpstreamRelease(ctx context.Context, client *github.Client, org, repo string, tags []string) (map[string]bool, error)
- func DeleteAssetByID(ctx context.Context, client *github.Client, owner, repo, tag string, id int64) error
- func DeleteAssetsByRelease(ctx context.Context, client *github.Client, owner, repo, tag string) error
- func GenReleaseNotes(ctx context.Context, owner, repo, milestone, prevMilestone string, ...) (*bytes.Buffer, error)
- func KubernetesGoVersion(ctx context.Context, client *github.Client, version string) (string, error)
- func LatestRC(ctx context.Context, owner, repo, k8sVersion string, client *github.Client) (string, error)
- func ListAssets(ctx context.Context, client *github.Client, owner, repo, tag string) ([]*github.ReleaseAsset, error)
- func VerifyAssets(ctx context.Context, client *github.Client, owner, repo string, tags []string) (map[string]bool, error)
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 LatestRC ¶ added in v0.21.0
func LatestRC(ctx context.Context, owner, repo, k8sVersion 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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.