Update to match new yaml format

This commit is contained in:
Dane Everitt 2019-11-16 13:34:05 -08:00
parent 9dcda47657
commit c9bfb18b1c
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -35,7 +35,7 @@ type Server struct {
// An array of environment variables that should be passed along to the running // An array of environment variables that should be passed along to the running
// server process. // server process.
EnvVars map[string]string `json:"environment" yaml:"env"` EnvVars map[string]string `json:"environment" yaml:"environment"`
Build *BuildSettings `json:"build"` Build *BuildSettings `json:"build"`
Allocations *Allocations `json:"allocations"` Allocations *Allocations `json:"allocations"`
@ -45,15 +45,15 @@ type Server struct {
Image string `json:"image,omitempty"` Image string `json:"image,omitempty"`
} `json:"container,omitempty"` } `json:"container,omitempty"`
Environment Environment `json:"-"` Environment Environment `json:"-" yaml:"-"`
Filesystem *Filesystem `json:"-"` Filesystem *Filesystem `json:"-" yaml:"-"`
Resources *ResourceUsage `json:"resources"` Resources *ResourceUsage `json:"resources"`
// Server cache used to store frequently requested information in memory and make // Server cache used to store frequently requested information in memory and make
// certain long operations return faster. For example, FS disk space usage. // certain long operations return faster. For example, FS disk space usage.
Cache *cache.Cache `json:"-"` Cache *cache.Cache `json:"-" yaml:"-"`
// All of the registered event listeners for this server instance. // All of the registered event listeners for this server instance.
listeners EventListeners listeners EventListeners