Discover Packages
github.com/RicochetStudios/aurora/schema
package
module
Version:
v0.0.0-...-75dcc22
Opens a new window with list of versions in this module.
Published: Aug 29, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Network struct {
Name string `yaml:"name"`
Port int `yaml:"port"`
Protocol string `yaml:"protocol"`
}
type Probe struct {
InitialDelaySeconds int `yaml:"initialDelaySeconds"`
PeriodSeconds int `yaml:"periodSeconds"`
FailureThreshold int `yaml:"failureThreshold"`
SuccessThreshold int `yaml:"successThreshold"`
TimeoutSeconds int `yaml:"timeoutSeconds"`
}
type Probes struct {
Command []string `yaml:"command"`
StartupProbe Probe `yaml:"startupProbe"`
ReadynessProbe Probe `yaml:"readynessProbe"`
LivenessProbe Probe `yaml:"livenessProbe"`
}
type Resources struct {
CPU string `yaml:"cpu"`
Memory string `yaml:"memory"`
}
type Schema struct {
Name string `yaml:"name"`
Image string `yaml:"image"`
URL string `yaml:"url"`
Ratio string `yaml:"ratio"`
Sizes map[string ]Size `yaml:"sizes"`
Network []Network `yaml:"network"`
Settings []Setting `yaml:"settings"`
Volumes []Volume `yaml:"volumes"`
Probes Probes `yaml:"probes"`
}
GetSchema gets a game schema from a yaml file and stores it as a Schema.
type Setting struct {
Name string `yaml:"name"`
Value string `yaml:"value"`
}
type Size struct {
Resources Resources `yaml:"resources"`
Players int `yaml:"players"`
}
type Sizes struct {
XS Size `yaml:"xs"`
S Size `yaml:"s"`
M Size `yaml:"m"`
L Size `yaml:"l"`
XL Size `yaml:"xl"`
}
type Volume struct {
Name string `yaml:"name"`
Path string `yaml:"path"`
Class string `yaml:"class"`
Size string `yaml:"size"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.