Implemented more life cycle handling. Added support for rootless environments

This commit is contained in:
2024-12-27 20:08:05 +01:00
parent 039db22207
commit 92e9f42fbc
21 changed files with 738 additions and 20 deletions

View File

@@ -0,0 +1,8 @@
using MoonlightServers.DaemonShared.Enums;
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Responses.Servers;
public class ServerStatusResponse
{
public ServerState State { get; set; }
}

View File

@@ -0,0 +1,10 @@
namespace MoonlightServers.DaemonShared.Enums;
public enum ServerState
{
Offline = 0,
Starting = 1,
Online = 2,
Stopping = 3,
Installing = 4
}

View File

@@ -0,0 +1,12 @@
namespace MoonlightServers.DaemonShared.Enums;
public enum ServerTask
{
None = 0,
CreatingStorage = 1,
PullingDockerImage = 2,
RemovingContainer = 3,
CreatingContainer = 4,
StartingContainer = 5,
StoppingContainer = 6
}