faas/gateway/version/version.go
Edward Wilde aca2c7fe2a Enhance info endpoint to include gateway version
Extend the health endpoint and add gateway version information

Resolves: #733
Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-07-06 17:50:48 +01:00

21 lines
429 B
Go

package version
var (
//Version release version of the provider
Version string
//GitCommit SHA of the last git commit
GitCommitSHA string
//GitCommit message of the last commit
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
}