certwarden-deploy/internal/configuration/models.go

29 lines
727 B
Go
Raw Normal View History

2024-07-03 10:00:21 +02:00
package configuration
2024-06-28 15:28:54 +02:00
import "log/slog"
var Config *ConfigFileData
2024-07-03 10:00:21 +02:00
var ConfigFile string
2024-06-28 15:28:54 +02:00
var Logger *slog.Logger
2024-06-30 08:55:07 +02:00
var DryRun bool
var QuietLogging bool
var VerboseLogging bool
2024-06-28 15:28:54 +02:00
type ConfigFileData struct {
BaseURL string `yaml:"base_url"`
DisableCertificateValidation bool `yaml:"disable_certificate_validation"`
2024-07-03 10:00:21 +02:00
Sentry SentryData `yaml:"sentry,omitempty"`
2024-06-28 15:28:54 +02:00
Certificates []CertificateData `yaml:"certificates"`
}
type CertificateData struct {
Name string `yaml:"name"`
ApiKey string `yaml:"api_key"`
Action string `yaml:"action"`
FilePath string `yaml:"file_path"`
}
2024-07-03 10:00:21 +02:00
type SentryData struct {
DSN string `yaml:"dsn"`
}