Documentation ¶
Overview ¶
Package version contains version and build variables set by the CI process.
Index ¶
Constants ¶
View Source
const TTSUpgradingDocsURL = "https://www.thethingsindustries.com/docs/getting-started/upgrading/"
TTSUpgradingDocsURL points to the upgrading documentation.
View Source
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 ¶
View Source
var BuildDate = ""
BuildDate of the binary
View Source
var GitCommit = ""
GitCommit from which the binary was built
View Source
var TTN = "3.15.3-dev"
TTN Version
Functions ¶
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, this function returns nil.
Click to show internal directories.
Click to hide internal directories.