backive/config/config.go

35 lines
534 B
Go
Raw Normal View History

2021-10-04 21:56:44 +02:00
package config
import "github.com/spf13/viper"
type Device struct {
name string
uuid string
ownerUser string
}
type Backup struct {
name string
targetDeviceName string
targetDir string
sourceDir string
scriptPath string
frequency int
exeUser string
}
type Settings struct {
systemMountPoint string
userMountPoint string
}
2021-10-04 22:14:16 +02:00
type Devices map[string]Device
type Backups map[string]Backup
2021-10-04 21:56:44 +02:00
func loadDevice() {
v1 := viper.New()
v1.SetConfigName("devices")
}