certwarden-deploy/internal/config/models.go

24 lines
594 B
Go
Raw Normal View History

2024-06-28 15:28:54 +02:00
package config
import "log/slog"
var Config *ConfigFileData
var ConfigFile *string
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"`
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"`
}