|
@@ -37,6 +37,7 @@ type Config struct {
|
|
Manager managerConfig `toml:"manager"`
|
|
Manager managerConfig `toml:"manager"`
|
|
Server serverConfig `toml:"server"`
|
|
Server serverConfig `toml:"server"`
|
|
Cgroup cgroupConfig `toml:"cgroup"`
|
|
Cgroup cgroupConfig `toml:"cgroup"`
|
|
|
|
+ ZFS zfsConfig `toml:"zfs"`
|
|
Include includeConfig `toml:"include"`
|
|
Include includeConfig `toml:"include"`
|
|
Mirrors []mirrorConfig `toml:"mirrors"`
|
|
Mirrors []mirrorConfig `toml:"mirrors"`
|
|
}
|
|
}
|
|
@@ -53,9 +54,10 @@ type globalConfig struct {
|
|
}
|
|
}
|
|
|
|
|
|
type managerConfig struct {
|
|
type managerConfig struct {
|
|
- APIBase string `toml:"api_base"`
|
|
|
|
- CACert string `toml:"ca_cert"`
|
|
|
|
- Token string `toml:"token"`
|
|
|
|
|
|
+ APIBase string `toml:"api_base"`
|
|
|
|
+ CACert string `toml:"ca_cert"`
|
|
|
|
+ ExtraStatusAPIs []string `toml:"extra_status_managers"`
|
|
|
|
+ // Token string `toml:"token"`
|
|
}
|
|
}
|
|
|
|
|
|
type serverConfig struct {
|
|
type serverConfig struct {
|
|
@@ -72,6 +74,11 @@ type cgroupConfig struct {
|
|
Group string `toml:"group"`
|
|
Group string `toml:"group"`
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+type zfsConfig struct {
|
|
|
|
+ Enable bool `toml:"enable"`
|
|
|
|
+ Zpool string `toml:"zpool"`
|
|
|
|
+}
|
|
|
|
+
|
|
type includeConfig struct {
|
|
type includeConfig struct {
|
|
IncludeMirrors string `toml:"include_mirrors"`
|
|
IncludeMirrors string `toml:"include_mirrors"`
|
|
}
|
|
}
|