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