Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupTargetConfig ¶
type BackupTargetConfig struct {
Macro string `mapstructure:"macro,"`
}
BackupTargetConfig represents a target configuration block
type Config ¶
type Config struct {
ConfigDir string
ConfigName string
Preferences *PreferencesConfig
AuthProviders map[string]auth_providers.AuthProviderConfig
DeviceClasses map[string]*DeviceClassConfig
DeviceGroups map[string]*DeviceGroupConfig
}
func LoadString ¶
LoadString reads the contents of cfg_str and parses it into a Config object
type DeviceClassConfig ¶
type DeviceClassConfig struct {
BackupTargets map[string]*BackupTargetConfig
}
type DeviceConfig ¶
type DeviceConfig struct {
Name string
ClassName string
Address string
AuthProvider string
AuthPath string
}
DeviceConfig represents a device configuration block
type DeviceGroupConfig ¶
type DeviceGroupConfig struct {
Devices map[string]*DeviceConfig
}
type PreferencesConfig ¶
type PreferencesConfig struct {
BackupDir string `mapstructure:"backup_dir,"`
HostIP string `mapstructure:"host_ip,"`
}
PreferencesConfig represents a preferences configuration block
Source Files
¶
Click to show internal directories.
Click to hide internal directories.