package
Version:
v0.5.0
Opens a new window with list of versions in this module.
Published: Sep 15, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Debug bool `envconfig:"DEBUG"`
Logging Logging
Host string `envconfig:"HOST"`
Database Database
GitopsRepo string `envconfig:"GITOPS_REPO"`
GitopsRepoDeployKeyPath string `envconfig:"GITOPS_REPO_DEPLOY_KEY_PATH"`
RepoCachePath string `envconfig:"REPO_CACHE_PATH"`
Notifications Notifications
Github Github
}
Environ returns the settings from the environment.
String returns the configuration in string format.
type Database struct {
Driver string `envconfig:"DATABASE_DRIVER"`
Config string `envconfig:"DATABASE_CONFIG"`
}
type Github struct {
AppID string `envconfig:"GITHUB_APP_ID"`
InstallationID string `envconfig:"GITHUB_INSTALLATION_ID"`
PrivateKey Multiline `envconfig:"GITHUB_PRIVATE_KEY"`
SkipVerify bool `envconfig:"GITHUB_SKIP_VERIFY"`
Debug bool `envconfig:"GITHUB_DEBUG"`
}
type Logging struct {
Debug bool `envconfig:"DEBUG"`
Trace bool `envconfig:"TRACE"`
Color bool `envconfig:"LOGS_COLOR"`
Pretty bool `envconfig:"LOGS_PRETTY"`
Text bool `envconfig:"LOGS_TEXT"`
}
Logging provides the logging configuration.
type Notifications struct {
Provider string `envconfig:"NOTIFICATIONS_PROVIDER"`
Token string `envconfig:"NOTIFICATIONS_TOKEN"`
DefaultChannel string `envconfig:"NOTIFICATIONS_DEFAULT_CHANNEL"`
ChannelMapping string `envconfig:"NOTIFICATIONS_CHANNEL_MAPPING"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.