Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
SaveConfig saves the configuration to .ignoregrets/config.yaml
func ValidateConfig ¶
ValidateConfig checks if the configuration is valid
Types ¶
type Config ¶
type Config struct {
Retention int `yaml:"retention"`
SnapshotOn []string `yaml:"snapshot_on"`
RestoreOn []string `yaml:"restore_on"`
HooksEnabled bool `yaml:"hooks_enabled"`
Exclude []string `yaml:"exclude"`
Include []string `yaml:"include"`
}
Config represents the configuration structure for ignoregrets
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a new Config with default values
func LoadConfig ¶
LoadConfig loads the configuration from .ignoregrets/config.yaml
Click to show internal directories.
Click to hide internal directories.