GethDeployment.cs
1 using Core; 2 using KubernetesWorkflow.Recipe; 3 using KubernetesWorkflow.Types; 4 using Newtonsoft.Json; 5 6 namespace GethPlugin 7 { 8 public class GethDeployment : IHasContainer 9 { 10 public GethDeployment(RunningPod pod, Port discoveryPort, Port httpPort, Port wsPort, GethAccount account, string pubKey) 11 { 12 Pod = pod; 13 DiscoveryPort = discoveryPort; 14 HttpPort = httpPort; 15 WsPort = wsPort; 16 Account = account; 17 PubKey = pubKey; 18 } 19 20 public RunningPod Pod { get; } 21 [JsonIgnore] 22 public RunningContainer Container { get { return Pod.Containers.Single(); } } 23 public Port DiscoveryPort { get; } 24 public Port HttpPort { get; } 25 public Port WsPort { get; } 26 public GethAccount Account { get; } 27 public string PubKey { get; } 28 } 29 }