kon/config/config.go

32 lines
678 B
Go
Raw Permalink Normal View History

2024-04-01 21:09:41 +02:00
package config
2024-04-01 22:04:54 +02:00
import "time"
2024-04-01 21:09:41 +02:00
type ConfigStruct struct {
2024-04-01 22:04:54 +02:00
Hosts map[string]string
Commands map[string][]string
CommandTimeout time.Duration
2024-04-01 21:09:41 +02:00
}
var Config = ConfigStruct{
Hosts: map[string]string{
2024-04-20 22:33:46 +02:00
"alpha": "127.0.0.1",
"beta": "127.0.0.1",
2024-04-01 21:09:41 +02:00
"gamma": "127.0.0.1",
"delta": "127.0.0.1",
"epsilon": "127.0.0.1",
"zeta": "127.0.0.1",
"eta": "127.0.0.1",
2024-04-20 22:33:46 +02:00
"omega": "127.0.0.1",
2024-04-01 22:04:54 +02:00
},
Commands: map[string][]string{
"update": {"yes", "|", "sudo", "pacman", "-Syyu"},
"neofetch": {"neofetch"},
"uptime": {"uptime"},
"uname": {"uname", "-A"},
2024-04-01 21:09:41 +02:00
},
2024-04-01 22:04:54 +02:00
CommandTimeout: 20 * time.Minute,
2024-04-01 21:09:41 +02:00
}
var AuthSecret = []byte("ChangeMe!")