Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCannotCheckNewRelease = errors.New("cannot check for new release")
Functions ¶
func CheckNewRelease ¶ added in v0.27.3
CheckNewRelease checks if there is a new release available.
Types ¶
type Container ¶ added in v0.29.4
type Container struct { Parameters // contains filtered or unexported fields }
func GetContainerInstance ¶ added in v0.29.4
func GetContainerInstance() *Container
func (*Container) Versions ¶ added in v0.29.4
func (c *Container) Versions() *VersionsCtn
type Parameters ¶ added in v0.29.4
type Parameters struct { TrackerToken string MachineArch string MachineOS string MachineOrg string MachineHostname string Version string GitCommit string BuildTime string GoVersion string }
func NewDefaultParameters ¶ added in v0.29.4
func NewDefaultParameters() Parameters
type Release ¶
type Release struct { //nolint:tagliatelle // GitHub response's field has snake case. URL string `json:"html_url"` Version string `json:"name"` }
func GetLatestRelease ¶
GetLatestRelease fetches the latest release from the GitHub API.
type VersionsCtn ¶ added in v0.29.4
type VersionsCtn struct { Version string GitCommit string BuildTime string GoVersion string OSArch string }
func NewVersionsCtn ¶ added in v0.29.4
func NewVersionsCtn(version, gitCommit, buildTime, goVersion, osArch string) *VersionsCtn
Click to show internal directories.
Click to hide internal directories.