667dbd8fb7
- Explicitly specify all of the valid options for Update - Seperate the config from File() and Units() - Add YAML tags for the fields
8 lines
271 B
Go
8 lines
271 B
Go
package config
|
|
|
|
type Update struct {
|
|
RebootStrategy string `yaml:"reboot-strategy" env:"REBOOT_STRATEGY" valid:"best-effort,etcd-lock,reboot,off"`
|
|
Group string `yaml:"group" env:"GROUP"`
|
|
Server string `yaml:"server" env:"SERVER"`
|
|
}
|