Documentation
¶
Overview ¶
Package config implements parsing and serialization for the quartz.yaml, environment and secrets required by the platform
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadRawConfig ¶
LoadRawConfig reads the specified configuration file and processes it into a Koanf map. It applies defaults, environment variables, and additional settings.
Types ¶
type Settings ¶
type Settings struct {
Config schema.QuartzConfig // The parsed Quartz configuration.
Secrets schema.QuartzSecrets // The parsed Quartz secrets.
// contains filtered or unexported fields
}
Settings is a wrapper for the main Quartz configuration and secrets.
func Load ¶
Load reads the configuration and secrets files and parses them into a Settings instance.
func NewSettings ¶
NewSettings creates a new Settings instance by parsing the provided configuration and secrets maps. Returns an error if unmarshalling fails.
func (Settings) ConfigString ¶
ConfigString retrieves a raw configuration value by its key.
func (Settings) SecretString ¶
SecretString retrieves a raw secret value by its key.
func (Settings) WriteJsonConfig ¶
WriteJsonConfig writes the application configuration to a JSON file. Supports an optional root key and indentation for pretty printing.
func (Settings) WriteYamlConfig ¶
WriteYamlConfig writes the application configuration to a YAML file.