faas/gateway/version/version.go
Alex Ellis bd39b9267a Update comments
- updates comments and adds where missing
- updates locks so that unlock is done via defer instead of
at the end of the statement
- extracts timeout variable in two places
- remove makeClient() unused method from metrics package

No-harm changes tested via go build.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-10-03 13:16:28 +01:00

24 lines
470 B
Go

package version
var (
// Version release version of the provider
Version string
// GitCommitSHA is the Git SHA of the latest tag/release
GitCommitSHA string
// GitCommitMessage as read from the latest tag/release
GitCommitMessage string
// DevVersion string for the development version
DevVersion = "dev"
)
// BuildVersion returns current version of the provider
func BuildVersion() string {
if len(Version) == 0 {
return DevVersion
}
return Version
}