mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
The welcome message shows the difference between Pro and CE. The timeout of 8 seconds was never going to be useful as a default, so changing to 60 seconds. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
24 lines
497 B
Go
24 lines
497 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 = "See GitHub for latest changes"
|
|
|
|
// 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
|
|
}
|