Documentation
¶
Overview ¶
Package config store all necessary configuration parameters for the project.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFromEnvironment ¶
func LoadFromEnvironment() error
LoadFromEnvironment analysis all project environment variables.
func LoadFromFile ¶
LoadFromFile parse an YAML file and fill the system configuration parameters.
func PasswordEncrypt ¶
PasswordEncrypt uses the secret to encode the password.
Types ¶
type Config ¶
type Config struct { Paths []string `yaml:"paths" envconfig:"paths"` AuditFile string `yaml:"audit file" envconfig:"audit"` KeepBackups int `yaml:"keep backups" envconfig:"keep_backups"` AWS struct { AccountID encrypted `yaml:"account id" envconfig:"account_id"` AccessKeyID encrypted `yaml:"access key id" envconfig:"access_key_id"` SecretAccessKey encrypted `yaml:"secret access key" envconfig:"secret_access_key"` Region string `yaml:"region" envconfig:"region"` VaultName string `yaml:"vault name" envconfig:"vault_name"` } `yaml:"aws" envconfig:"aws"` }
Config stores all the necessary information to send backups to the cloud and keep track in the local storage.
Click to show internal directories.
Click to hide internal directories.