Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2017-07-18 23:30:47 +0300
committerAndrew Newdigate <andrew@gitlab.com>2017-07-18 23:30:47 +0300
commite8933bf3e18430505126ff17fbe67d9751f60427 (patch)
treec72208de8693760a8c1d7c00377b675ad8a650e5 /internal/version
parent3ebd3ba52ffde9c7af181a29369ee2141bfe3976 (diff)
Version without Build Time
Diffstat (limited to 'internal/version')
-rw-r--r--internal/version/gitaly_version.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/internal/version/gitaly_version.go b/internal/version/gitaly_version.go
new file mode 100644
index 000000000..fa9f2b9c8
--- /dev/null
+++ b/internal/version/gitaly_version.go
@@ -0,0 +1,23 @@
+package version
+
+import (
+ "fmt"
+)
+
+var version string
+var buildtime string
+
+// GetVersionString returns a standard version header
+func GetVersionString() string {
+ return fmt.Sprintf("Gitaly, version %v, built %v\n", version, buildtime)
+}
+
+// GetVersion returns the semver compatible version number
+func GetVersion() string {
+ return version
+}
+
+// GetBuildTime returns the time at which the build took place
+func GetBuildTime() string {
+ return buildtime
+}