24 lines
737 B
Go
24 lines
737 B
Go
//go:generate go run -mod=vendor github.com/UnnoTed/fileb0x b0x.toml
|
|
|
|
// I'm prototyping this out to be useful for more than just watchdog
|
|
// hence there are a few unnecessary things for the sake of the trying it out
|
|
package main
|
|
|
|
type Config struct {
|
|
Name string `json:"name"`
|
|
Desc string `json:"desc"`
|
|
URL string `json:"url"`
|
|
Exec string `json:"exec"`
|
|
Args string `json:"args"`
|
|
User string `json:"user"`
|
|
Group string `json:"group"`
|
|
Production bool `json:"production"`
|
|
PrivilegedPorts bool `json:"privileged_ports"`
|
|
MultiuserProtection bool `json:"multiuser_protection"`
|
|
}
|
|
|
|
func main() {
|
|
|
|
install()
|
|
}
|