Started with servers sync to daemon
This commit is contained in:
7
MoonlightServers.Daemon/Models/Allocation.cs
Normal file
7
MoonlightServers.Daemon/Models/Allocation.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace MoonlightServers.Daemon.Models;
|
||||
|
||||
public class Allocation
|
||||
{
|
||||
public string IpAddress { get; set; }
|
||||
public int Port { get; set; }
|
||||
}
|
||||
22
MoonlightServers.Daemon/Models/ServerData.cs
Normal file
22
MoonlightServers.Daemon/Models/ServerData.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
namespace MoonlightServers.Daemon.Models;
|
||||
|
||||
public class ServerData
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string StartupCommand { get; set; }
|
||||
public string OnlineDetection { get; set; }
|
||||
public string StopCommand { get; set; }
|
||||
public string DockerImage { get; set; }
|
||||
public bool PullDockerImage { get; set; }
|
||||
public string ParseConiguration { get; set; }
|
||||
|
||||
public int Cpu { get; set; }
|
||||
public int Memory { get; set; }
|
||||
public int Disk { get; set; }
|
||||
|
||||
public bool UseVirtualDisk { get; set; }
|
||||
public int Bandwidth { get; set; }
|
||||
|
||||
public List<Allocation> Allocations { get; set; }
|
||||
public Dictionary<string, string> Variables { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user