2
0
mirror of synced 2025-01-12 17:44:08 +00:00

30 lines
923 B
C#
Raw Normal View History

2023-09-21 10:56:48 +02:00
using Core;
using KubernetesWorkflow.Recipe;
using KubernetesWorkflow.Types;
2023-11-06 16:10:19 +01:00
using Newtonsoft.Json;
2023-09-15 12:36:35 +02:00
2023-09-19 11:51:59 +02:00
namespace GethPlugin
{
2023-09-21 10:56:48 +02:00
public class GethDeployment : IHasContainer
2023-09-19 11:51:59 +02:00
{
2023-11-06 16:10:19 +01:00
public GethDeployment(RunningContainers containers, Port discoveryPort, Port httpPort, Port wsPort, GethAccount account, string pubKey)
2023-09-19 11:51:59 +02:00
{
2023-11-06 16:10:19 +01:00
Containers = containers;
2023-09-19 11:51:59 +02:00
DiscoveryPort = discoveryPort;
HttpPort = httpPort;
WsPort = wsPort;
2023-10-23 13:36:20 +02:00
Account = account;
2023-09-19 11:51:59 +02:00
PubKey = pubKey;
}
2023-11-06 16:10:19 +01:00
public RunningContainers Containers { get; }
[JsonIgnore]
public RunningContainer Container { get { return Containers.Containers.Single(); } }
2023-09-19 11:51:59 +02:00
public Port DiscoveryPort { get; }
public Port HttpPort { get; }
public Port WsPort { get; }
2023-10-23 13:36:20 +02:00
public GethAccount Account { get; }
2023-09-19 11:51:59 +02:00
public string PubKey { get; }
}
}