certwarden-deploy/internal/config/models.go

21 lines
532 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
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"`
}