templatefile/pkg/configs/main.go

27 lines
676 B
Go
Raw Normal View History

2022-06-15 17:29:45 +02:00
package configs
2022-06-23 18:03:09 +02:00
type SimpleCondition struct {
Var string `json:"var"`
Value bool `json:"value"`
}
type SystemUser struct {
UserName string `json:"username"`
Group string `json:"group"`
Home string `json:"home"`
Shell string `json:"shell"`
}
type Service struct {
EnabledBy SimpleCondition `json:"EnabledBy"`
ConfigFiles []ConfigFile `json:"ConfigFiles"`
Vars map[string]interface{} `json:"Vars"`
Daemon SystemService `json:"Daemon"`
Users map[string]SystemUser `json:"Users"`
2022-06-15 17:29:45 +02:00
}
type TemplaterConfig struct {
2022-06-23 18:03:09 +02:00
Name string `json:"Name"`
Services map[string]Service `json:"Services"`
2022-06-15 17:29:45 +02:00
}