Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // Version is the current version of AgentX (set via -ldflags or defaults to "dev") Version = "dev" // GitCommit is the git commit hash GitCommit = "unknown" // BuildDate is the build timestamp BuildDate = "unknown" )
These variables are set at build time using ldflags
Functions ¶
func GetFullVersion ¶
func GetFullVersion() string
GetFullVersion returns formatted version info with commit and build date
func ReleaseNotesURL ¶ added in v0.0.8
func ReleaseNotesURL() string
ReleaseNotesURL returns the latest release notes URL.
func SkipVersion ¶ added in v0.0.8
SkipVersion records a version to ignore until a newer release is available.
Types ¶
type UpdateNotice ¶ added in v0.0.8
UpdateNotice describes an available update and how to upgrade.
func CheckForUpdate ¶ added in v0.0.8
func CheckForUpdate(ctx context.Context) (UpdateNotice, bool, error)
CheckForUpdate returns an update notice when a newer release is available.