cs-codex-dist-tests/ProjectPlugins/GethPlugin/GethDeployment.cs

30 lines
874 B
C#
Raw Permalink Normal View History

2023-09-21 08:56:48 +00:00
using Core;
using KubernetesWorkflow.Recipe;
using KubernetesWorkflow.Types;
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
{
2024-04-13 14:09:17 +00:00
public GethDeployment(RunningPod pod, Port discoveryPort, Port httpPort, Port wsPort, GethAccount account, string pubKey)
2023-09-19 09:51:59 +00:00
{
2024-04-13 14:09:17 +00:00
Pod = pod;
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;
}
2024-04-13 14:09:17 +00:00
public RunningPod Pod { get; }
2023-11-06 15:10:19 +00:00
[JsonIgnore]
2024-04-13 14:09:17 +00:00
public RunningContainer Container { get { return Pod.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; }
}
}