wings/server
Dane Everitt 5764894a5e
Cleanup server sync logic to work in a single consistent format (#101)
* Cleanup server sync logic to work in a single consistent format

Previously we had a mess of a function trying to update server details from a patch request. This change just centralizes everything to a single Sync() call when a server needs to update itself.

We can also eventually update the panel (in V2) to not hit the patch endpoint, rather it can just be a generic endpoint that is hit after a server is updated on the Panel that tells Wings to re-sync the data to get the environment changes on the fly.

The changes I made to the patch function currently act like that, with a slightly fragile 2 second wait to let the panel persist the changes since I don't want this to be a breaking change on that end.

* Remove legacy server patch endpoint; replace with simpler sync endpoint
2021-08-29 13:37:18 -07:00
..
backup break everything 2021-08-02 15:07:00 -06:00
filesystem break everything 2021-08-02 15:07:00 -06:00
backup.go break everything 2021-08-02 15:07:00 -06:00
config_parser.go organize imports with gopls format 2021-01-10 01:22:39 +00:00
configuration.go installer: support 'start_on_completion' (#96) 2021-07-04 15:08:05 -07:00
console.go Fix race condition when setting app name in console output 2021-08-15 16:46:55 -07:00
crash.go organize imports with gopls format 2021-01-10 01:22:39 +00:00
errors.go internally mark if a server is restoring to restrict actions 2021-03-12 16:19:35 -07:00
events.go Better error handling and logging for restorations 2021-01-30 18:43:35 -08:00
install.go break everything 2021-08-02 15:07:00 -06:00
listeners.go break everything 2021-08-02 15:07:00 -06:00
manager.go Cleanup server sync logic to work in a single consistent format (#101) 2021-08-29 13:37:18 -07:00
mounts.go break everything 2021-08-02 15:07:00 -06:00
power.go break everything 2021-08-02 15:07:00 -06:00
resources.go break everything 2021-08-02 15:07:00 -06:00
server.go Cleanup server sync logic to work in a single consistent format (#101) 2021-08-29 13:37:18 -07:00
update.go Cleanup server sync logic to work in a single consistent format (#101) 2021-08-29 13:37:18 -07:00
websockets.go break everything 2021-08-02 15:07:00 -06:00