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

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-11-25 17:36:46 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-11-25 17:36:46 +0300
commit677a15554a5ccb3138593bb6f0d5a37efc8a32f6 (patch)
tree0fede892cdceefa26370d753ff2fe724fc0dab3b /app_config.go
parentd2e70a9eb308ba9c7fdec9ed19cb44fa235a0a67 (diff)
Make it possible to pass client config to gitlab source
Diffstat (limited to 'app_config.go')
-rw-r--r--app_config.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/app_config.go b/app_config.go
index b870626d..379a3696 100644
--- a/app_config.go
+++ b/app_config.go
@@ -34,3 +34,13 @@ type appConfig struct {
SentryEnvironment string
CustomHeaders []string
}
+
+// GitlabServerURL returns URL to a GitLab instance.
+func (config appConfig) GitlabServerURL() string {
+ return config.GitLabServer
+}
+
+// GitlabClientSecret returns GitLab server access token.
+func (config appConfig) GitlabClientSecret() []byte {
+ return []byte(config.ClientSecret)
+}