UNPKG

@hashgraph/solo

Version:

An opinionated CLI tool to deploy and manage private Hedera Networks.

193 lines 5.79 kB
/** * SPDX-License-Identifier: Apache-2.0 */ export class NetworkNodeServices { clusterRef; context; deployment; nodeAlias; namespace; nodeId; nodePodName; haProxyName; haProxyLoadBalancerIp; haProxyClusterIp; haProxyGrpcPort; haProxyGrpcsPort; accountId; haProxyAppSelector; haProxyPodName; nodeServiceName; nodeServiceClusterIp; nodeServiceLoadBalancerIp; nodeServiceGossipPort; nodeServiceGrpcPort; nodeServiceGrpcsPort; envoyProxyName; envoyProxyClusterIp; envoyProxyLoadBalancerIp; envoyProxyGrpcWebPort; constructor(builder) { this.clusterRef = builder.clusterRef; this.context = builder.context; this.deployment = builder.deployment; this.nodeAlias = builder.nodeAlias; this.namespace = builder.namespace; this.nodeId = builder.nodeId; this.nodePodName = builder.nodePodName; this.haProxyName = builder.haProxyName; this.haProxyLoadBalancerIp = builder.haProxyLoadBalancerIp; this.haProxyClusterIp = builder.haProxyClusterIp; this.haProxyGrpcPort = builder.haProxyGrpcPort; this.haProxyGrpcsPort = builder.haProxyGrpcsPort; this.accountId = builder.accountId; this.haProxyAppSelector = builder.haProxyAppSelector; this.haProxyPodName = builder.haProxyPodName; this.nodeServiceName = builder.nodeServiceName; this.nodeServiceClusterIp = builder.nodeServiceClusterIp; this.nodeServiceLoadBalancerIp = builder.nodeServiceLoadBalancerIp; this.nodeServiceGossipPort = builder.nodeServiceGossipPort; this.nodeServiceGrpcPort = builder.nodeServiceGrpcPort; this.nodeServiceGrpcsPort = builder.nodeServiceGrpcsPort; this.envoyProxyName = builder.envoyProxyName; this.envoyProxyClusterIp = builder.envoyProxyClusterIp; this.envoyProxyLoadBalancerIp = builder.envoyProxyLoadBalancerIp; this.envoyProxyGrpcWebPort = builder.envoyProxyGrpcWebPort; } key() { return this.nodeAlias; } } export class NetworkNodeServicesBuilder { nodeAlias; namespace; clusterRef; context; deployment; nodeId; haProxyName; accountId; haProxyClusterIp; envoyProxyGrpcWebPort; envoyProxyLoadBalancerIp; haProxyLoadBalancerIp; haProxyGrpcPort; haProxyGrpcsPort; haProxyAppSelector; haProxyPodName; nodeServiceName; nodeServiceClusterIp; nodeServiceGrpcsPort; envoyProxyClusterIp; envoyProxyName; nodeServiceLoadBalancerIp; nodeServiceGossipPort; nodeServiceGrpcPort; nodePodName; constructor(nodeAlias) { this.nodeAlias = nodeAlias; } withNamespace(namespace) { this.namespace = namespace; return this; } withClusterRef(clusterRef) { this.clusterRef = clusterRef; return this; } withContext(context) { this.context = context; return this; } withDeployment(deployment) { this.deployment = deployment; return this; } withNodeId(nodeId) { this.nodeId = nodeId; return this; } withAccountId(accountId) { this.accountId = accountId; return this; } withHaProxyName(haProxyName) { this.haProxyName = haProxyName; return this; } withHaProxyClusterIp(haProxyClusterIp) { this.haProxyClusterIp = haProxyClusterIp; return this; } withHaProxyLoadBalancerIp(haProxyLoadBalancerIp) { this.haProxyLoadBalancerIp = haProxyLoadBalancerIp; return this; } withHaProxyGrpcPort(haProxyGrpcPort) { this.haProxyGrpcPort = haProxyGrpcPort; return this; } withHaProxyGrpcsPort(haProxyGrpcsPort) { this.haProxyGrpcsPort = haProxyGrpcsPort; return this; } withHaProxyAppSelector(haProxyAppSelector) { this.haProxyAppSelector = haProxyAppSelector; return this; } withHaProxyPodName(haProxyPodName) { this.haProxyPodName = haProxyPodName; return this; } withNodePodName(nodePodName) { this.nodePodName = nodePodName; return this; } withNodeServiceName(nodeServiceName) { this.nodeServiceName = nodeServiceName; return this; } withNodeServiceClusterIp(nodeServiceClusterIp) { this.nodeServiceClusterIp = nodeServiceClusterIp; return this; } withNodeServiceLoadBalancerIp(nodeServiceLoadBalancerIp) { this.nodeServiceLoadBalancerIp = nodeServiceLoadBalancerIp; return this; } withNodeServiceGossipPort(nodeServiceGossipPort) { this.nodeServiceGossipPort = nodeServiceGossipPort; return this; } withNodeServiceGrpcPort(nodeServiceGrpcPort) { this.nodeServiceGrpcPort = nodeServiceGrpcPort; return this; } withNodeServiceGrpcsPort(nodeServiceGrpcsPort) { this.nodeServiceGrpcsPort = nodeServiceGrpcsPort; return this; } withEnvoyProxyName(envoyProxyName) { this.envoyProxyName = envoyProxyName; return this; } withEnvoyProxyClusterIp(envoyProxyClusterIp) { this.envoyProxyClusterIp = envoyProxyClusterIp; return this; } withEnvoyProxyLoadBalancerIp(envoyProxyLoadBalancerIp) { this.envoyProxyLoadBalancerIp = envoyProxyLoadBalancerIp; return this; } withEnvoyProxyGrpcWebPort(envoyProxyGrpcWebPort) { this.envoyProxyGrpcWebPort = envoyProxyGrpcWebPort; return this; } build() { return new NetworkNodeServices(this); } key() { return this.nodeAlias; } } //# sourceMappingURL=network_node_services.js.map