gitea-sonarqube-bot/internal/settings
justusbunsi dc3969cd05
Improve configuration file flexibility
Instead of re-inventing the wheel regarding configuration location
handling and validation, this introduces a new command flag `--config`
allowing for full flexibility of configuration filename and location.
This flag can also be defined via environment variable which allows
an easy way of starting the bot from command line, inside a Docker
container or using the Helm Chart.

It makes the custom environment lookup unnecessary and reduces some
complexity during startup and for writing tests.

Resolves: #10

Signed-off-by: Steven Kriegler <sk.bunsenbrenner@gmail.com>
2022-05-22 14:03:23 +02:00
..
gitea.go Add webhook secret validation 2022-05-21 19:05:09 +02:00
project.go Split settings structs into separate files 2021-10-09 21:10:30 +02:00
settings.go Improve configuration file flexibility 2022-05-22 14:03:23 +02:00
settings_test.go Improve configuration file flexibility 2022-05-22 14:03:23 +02:00
sonarqube.go Add webhook secret validation 2022-05-21 19:05:09 +02:00
token.go Export webhook and token struct 2021-10-17 16:01:15 +02:00
webhook.go Export webhook and token struct 2021-10-17 16:01:15 +02:00