diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-11-25 17:36:46 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-11-25 17:36:46 +0300 |
commit | 677a15554a5ccb3138593bb6f0d5a37efc8a32f6 (patch) | |
tree | 0fede892cdceefa26370d753ff2fe724fc0dab3b /app_config.go | |
parent | d2e70a9eb308ba9c7fdec9ed19cb44fa235a0a67 (diff) |
Make it possible to pass client config to gitlab source
Diffstat (limited to 'app_config.go')
-rw-r--r-- | app_config.go | 10 |
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) +} |