From 231e24aa3375b3a483b8601d1ccb56f48686d378 Mon Sep 17 00:00:00 2001 From: DaneEveritt Date: Sun, 24 Jul 2022 17:16:45 -0400 Subject: [PATCH] Support new metadata from panel for servers --- server/configuration.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/configuration.go b/server/configuration.go index 64bab10..3bd28ec 100644 --- a/server/configuration.go +++ b/server/configuration.go @@ -16,6 +16,11 @@ type EggConfiguration struct { FileDenylist []string `json:"file_denylist"` } +type ConfigurationMeta struct { + Name string `json:"name"` + Description string `json:"description"` +} + type Configuration struct { mu sync.RWMutex @@ -24,6 +29,8 @@ type Configuration struct { // docker containers as well as in log output. Uuid string `json:"uuid"` + Meta ConfigurationMeta `json:"meta"` + // Whether or not the server is in a suspended state. Suspended servers cannot // be started or modified except in certain scenarios by an admin user. Suspended bool `json:"suspended"`