Implemented more life cycle handling. Added support for rootless environments
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
using MoonlightServers.DaemonShared.Enums;
|
||||
|
||||
namespace MoonlightServers.DaemonShared.DaemonSide.Http.Responses.Servers;
|
||||
|
||||
public class ServerStatusResponse
|
||||
{
|
||||
public ServerState State { get; set; }
|
||||
}
|
||||
10
MoonlightServers.DaemonShared/Enums/ServerState.cs
Normal file
10
MoonlightServers.DaemonShared/Enums/ServerState.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace MoonlightServers.DaemonShared.Enums;
|
||||
|
||||
public enum ServerState
|
||||
{
|
||||
Offline = 0,
|
||||
Starting = 1,
|
||||
Online = 2,
|
||||
Stopping = 3,
|
||||
Installing = 4
|
||||
}
|
||||
12
MoonlightServers.DaemonShared/Enums/ServerTask.cs
Normal file
12
MoonlightServers.DaemonShared/Enums/ServerTask.cs
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user