diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-03-11 10:44:36 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2019-03-13 12:17:52 +0100 |
commit | f9d3d8b301c90d05012ac3a8ec53d0ff1dd3aa79 (patch) | |
tree | 739325471ad815cdd14cdf1eea5c7b27e4f0c046 /go/internal/gitlabnet/client.go | |
parent | 2a51ab3902226b2d571987d07edb31425054215e (diff) | |
download | gitlab-shell-f9d3d8b301c90d05012ac3a8ec53d0ff1dd3aa79.tar.gz |
Get secret from config
This adds parsing if the `secret_file` from YAML. And reads the
contents of the configured file.
If no file is configured, we fall back to the `.gitlab_shell_secret`
in the root dir of the configuration.
If the configured path does not start with a `/` we start looking for
the file relative to the root dir of the configuration.
Diffstat (limited to 'go/internal/gitlabnet/client.go')
0 files changed, 0 insertions, 0 deletions