mirror of
https://github.com/openfaas/faas.git
synced 2025-06-10 17:26:47 +00:00
Extend the health endpoint and add gateway version information Resolves: #733 Signed-off-by: Edward Wilde <ewilde@gmail.com>
21 lines
429 B
Go
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
|
|
}
|