2
0
mirror of synced 2025-01-27 08:46:04 +00:00

30 lines
874 B
C#
Raw Permalink 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
{
2024-04-13 17:09:17 +03:00
public GethDeployment(RunningPod pod, Port discoveryPort, Port httpPort, Port wsPort, GethAccount account, string pubKey)
2023-09-19 11:51:59 +02:00
{
2024-04-13 17:09:17 +03:00
Pod = pod;
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;
}
2024-04-13 17:09:17 +03:00
public RunningPod Pod { get; }
2023-11-06 16:10:19 +01:00
[JsonIgnore]
2024-04-13 17:09:17 +03:00
public RunningContainer Container { get { return Pod.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; }
}
}