Documentation ¶
Overview ¶
Package version contains version and build variables set by the CI process.
Index ¶
Constants ¶
const TTSUpgradingDocsURL = "https://www.thethingsindustries.com/docs/getting-started/upgrading/"
TTSUpgradingDocsURL points to the upgrading documentation.
const TTSVersionCheckURL = "https://www.thethingsindustries.com/releases/thethingsstack-open-source.json"
TTSVersionCheckURL points to a list of The Things Stack releases that is used for version checking.
Variables ¶
var BuildDate = ""
BuildDate of the binary
var GitCommit = ""
GitCommit from which the binary was built
var TTN = "3.21.0-dev"
TTN Version
Functions ¶
func ClearRecentCheckCache ¶ added in v3.19.2
func ClearRecentCheckCache() error
ClearRecentCheckCache clears cache
Types ¶
type CheckOption ¶ added in v3.14.0
type CheckOption interface {
// contains filtered or unexported methods
}
CheckOption customizes the version check.
func WithClient ¶ added in v3.14.0
func WithClient(client *http.Client) CheckOption
WithClient configures a custom HTTP client.
func WithReference ¶ added in v3.14.0
func WithReference(current semver.Version) CheckOption
WithReference configures a custom reference version.
func WithURLs ¶ added in v3.14.0
func WithURLs(sourceURL, docsURL string) CheckOption
WithURLs configures custom URLs for source and documentation.
type Update ¶ added in v3.14.0
Update is the latest version.
func CheckUpdate ¶ added in v3.14.0
func CheckUpdate(ctx context.Context, opts ...CheckOption) (*Update, error)
CheckUpdate checks whether there is a version update available. If there is no update, or no new version is available, this function returns nil. The function uses cache.