buildinfo

package
v2.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExternalURL

func ExternalURL() string

ExternalURL returns a URL referencing the current Coder version. For production builds, this will link directly to a release. For development builds, this will link to a commit.

func IsAGPL

func IsAGPL() bool

IsAGPL returns true if this is an AGPL build.

func IsBoringCrypto added in v2.2.0

func IsBoringCrypto() bool

func IsDev

func IsDev() bool

IsDev returns true if this is a development build. CI builds are also considered development builds.

func IsDevVersion added in v2.2.0

func IsDevVersion(v string) bool

func IsSlim

func IsSlim() bool

IsSlim returns true if this is a slim build.

func Time

func Time() (time.Time, bool)

Time returns when the Git revision was published.

func Version

func Version() string

Version returns the semantic version of the build. Use golang.org/x/mod/semver to compare versions.

func VersionsMatch

func VersionsMatch(v1, v2 string) bool

VersionsMatch compares the two versions. It assumes the versions match if the major and the minor versions are equivalent. Patch versions are disregarded. If it detects that either version is a developer build it returns true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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