Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Comparable ¶ added in v0.10.1
Comparable reports whether ver is a release version advisories can be matched against. Development builds are not, so "no advisories match" says nothing about them.
func UpgradeHint ¶ added in v0.10.1
func UpgradeHint() string
UpgradeHint is the command that upgrades the running binary, chosen by where it is installed; a link to the update docs when that is unknown.
Types ¶
type Advisory ¶ added in v0.10.1
type Advisory struct {
ID string `json:"id"`
Summary string `json:"summary"`
Severity string `json:"severity"`
URL string `json:"url"`
// Range is the vulnerable version range in GitHub's syntax, e.g.
// "< 0.9.5" or ">= 0.4.0, < 0.6.5".
Range string `json:"range"`
// Patched is the first fixed version, empty when none is published.
Patched string `json:"patched,omitempty"`
}
Advisory is a published security advisory affecting the melange module.
type Info ¶
type Info struct {
LatestVersion string `json:"latest_version"`
CurrentVersion string `json:"current_version"`
CheckedAt time.Time `json:"checked_at"`
UpdateAvailable bool `json:"update_available"`
// Advisories are the published advisories for the melange module, nil
// when they could not be fetched. Use Affecting to match a version.
Advisories []Advisory `json:"advisories"`
}
Info contains update check results
Click to show internal directories.
Click to hide internal directories.