Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LatestK0sBinaryURL ¶
LatestK0sBinaryURL returns the url for the latest k0s release by arch and os
func LatestK0sVersion ¶
LatestK0sVersion returns the latest k0s version number (without v prefix)
Types ¶
type Release ¶
type Release struct { URL string `json:"html_url"` TagName string `json:"tag_name"` PreRelease bool `json:"prerelease"` Assets []Asset `json:"assets"` }
Release describes a github release
func LatestRelease ¶
LatestRelease returns the semantically sorted latest version from github releases page for a repo. Set preok true to allow returning pre-release versions. Assumes the repository has release tags with semantic version numbers (optionally v-prefixed).
Click to show internal directories.
Click to hide internal directories.