app

package
v0.29.4-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

func CheckNewRelease(bv string) (string, error)

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) Tracker added in v0.29.4

func (c *Container) Tracker() *analytics.Tracker

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

func GetLatestRelease() (Release, error)

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

Jump to

Keyboard shortcuts

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