package
Version:
v0.2.2
Opens a new window with list of versions in this module.
Published: Mar 9, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Schedule string `koanf:"schedule"`
Snapraid Snapraid `koanf:"snapraid"`
Scrub Scrub `koanf:"scrub"`
}
Config contains the main snaprd config
Parse loads configuration file and unmarshal's to struct
type Scrub struct {
Enabled bool `koanf:"enabled"`
Percentage int `koanf:"percentage"`
OlderThan int `koanf:"olderThan"`
}
Scrub contains the snapraid scrub specific config
type Snapraid struct {
Executable string `koanf:"executable"`
ConfigPath string `koanf:"configPath"`
DeleteThreshold int `koanf:"deleteThreshold"`
Touch bool `koanf:"touch"`
}
Snapraid contains the snapraid specific config
Source Files
¶
Click to show internal directories.
Click to hide internal directories.