Documentation
¶
Index ¶
Constants ¶
View Source
const GlobalConfigPath = "/etc/srcds_controller/config.yaml"
GlobalConfigPath default global config file path
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct {
Limit *Limit `yaml:"limit"`
Name string `yaml:"name"`
Opts CheckOpts `yaml:"opts"`
}
Check config for a check, see `pkg/checks/` for available checks
type Config ¶
type Config struct {
General *General `yaml:"general"`
Docker *Docker `yaml:"docker"`
Server *Server `yaml:"server"`
Checker *Checker `yaml:"checker"`
Checks map[string]CheckOpts `yaml:"checks"`
}
Config config file struct
var (
Cfg *Config
)
Cfg variables holding the Config
type GlobalConfig ¶
type GlobalConfig struct {
General *General `yaml:"general"`
Docker *Docker `yaml:"docker"`
Checker *Checker `yaml:"checker"`
Checks map[string]CheckOpts `yaml:"checks"`
}
GlobalConfig global config file always read from `/etc/srcds_controller/config.yaml`
type Limit ¶
type Limit struct {
After time.Duration `yaml:"after"`
Count int64 `yaml:"count"`
Actions []string `yaml:"actions"`
ActionOpts CheckOpts `yaml:"actionOpts"`
}
Limit config with limits and actions ot execute when the limits (after or count) have been reached
type MapSelection ¶ added in v0.0.16
type MapSelection struct {
Enabled bool `yaml:"enabled"`
FileFilter string `yaml:"fileFilter"`
FallbackMap string `yaml:"fallbackMap"`
}
MapSelection map selection config
type RunOptions ¶
RunOptions run options such as user and group id to run the server as.
type Server ¶
type Server struct {
Name string `yaml:"name"`
Enabled bool `yaml:"enabled"`
Address string `yaml:"address"`
Port int `yaml:"port"`
MountsDir string `yaml:"mountsDir"`
Command string `yaml:"command"`
Flags []string `yaml:"flags"`
MapSelection *MapSelection `yaml:"mapSelection"`
RCON RCON `yaml:"rcon"`
Checks []Check `yaml:"checks"`
OnExitCommand string `yaml:"onExitCommand"`
GameID int64 `yaml:"gameID"`
Resources *container.Resources `yaml:"resources,omitempty"`
RunOptions RunOptions `yaml:"runOptions"`
ACL *ACL `yaml:"acl"`
Path string
}
Server config/info for a server
Click to show internal directories.
Click to hide internal directories.