30 lines
874 B
C#
30 lines
874 B
C#
using Core;
|
|
using KubernetesWorkflow.Recipe;
|
|
using KubernetesWorkflow.Types;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace GethPlugin
|
|
{
|
|
public class GethDeployment : IHasContainer
|
|
{
|
|
public GethDeployment(RunningPod pod, Port discoveryPort, Port httpPort, Port wsPort, GethAccount account, string pubKey)
|
|
{
|
|
Pod = pod;
|
|
DiscoveryPort = discoveryPort;
|
|
HttpPort = httpPort;
|
|
WsPort = wsPort;
|
|
Account = account;
|
|
PubKey = pubKey;
|
|
}
|
|
|
|
public RunningPod Pod { get; }
|
|
[JsonIgnore]
|
|
public RunningContainer Container { get { return Pod.Containers.Single(); } }
|
|
public Port DiscoveryPort { get; }
|
|
public Port HttpPort { get; }
|
|
public Port WsPort { get; }
|
|
public GethAccount Account { get; }
|
|
public string PubKey { get; }
|
|
}
|
|
}
|