package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: Sep 2, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 2
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"`
Notifications Notifications
GithubStatusToken string `envconfig:"GITHUB_STATUS_TOKEN"`
GithubChartAccessDeployKeyPath string `envconfig:"GITOPS_CHART_ACCESS_DEPLOY_KEY_PATH"`
}
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 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.