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>
This commit is contained in:
Edward Wilde
2018-07-02 16:42:16 +01:00
committed by Alex Ellis
parent 672a6be182
commit aca2c7fe2a
10 changed files with 209 additions and 7 deletions

View File

@ -0,0 +1,20 @@
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
}