Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseModule
    • gateway

Index

Constructors

Properties

backendStorage: BackendStorage
deploymentFactory: DeploymentFactory
gateway: GatewayHL
moduleName: string = "gateways"
projectName: string = ""
rmb: RMB
tfClient: TFClient
twinDeploymentHandler: TwinDeploymentHandler
workloadTypes: WorkloadTypes[] = ...

Methods

  • _add(deployment_name: string, node_id: number, oldDeployments: Deployment[], twinDeployments: TwinDeployment[], network?: Network): Promise<{ contracts: { created: any[]; deleted: any[]; updated: any[] } }>
  • _delete(name: string): Promise<{ created: any[]; deleted: any[]; updated: any[] }>
  • _deleteInstance(module: ZdbHL | KubernetesHL | VMHL, deployment_name: string, name: string): Promise<{ created: any[]; deleted: any[]; updated: any[] }>
  • _getContractIdFromNodeId(name: string, nodeId: number): Promise<number>
  • _getDeploymentNodeIds(name: string): Promise<number[]>
  • _getDiskData(deployments: Deployment[], name: string, contractId: number): { cache: undefined; expected_shards: undefined; message: string; metricsEndpoint: undefined; minimal_shards: undefined; prefix: undefined; qsfs_zdbs_name: undefined; size: number; state: ResultStates } | { cache: number; expected_shards: number; message: string; metricsEndpoint: string; minimal_shards: number; prefix: string; qsfs_zdbs_name: any; size: any; state: ResultStates }
  • Parameters

    • deployments: Deployment[]
    • name: string
    • contractId: number

    Returns { cache: undefined; expected_shards: undefined; message: string; metricsEndpoint: undefined; minimal_shards: undefined; prefix: undefined; qsfs_zdbs_name: undefined; size: number; state: ResultStates } | { cache: number; expected_shards: number; message: string; metricsEndpoint: string; minimal_shards: number; prefix: string; qsfs_zdbs_name: any; size: any; state: ResultStates }

  • _getMachinePubIP(deploymentName: string, deployments: any, publicIPWorkloadName: string): Promise<PublicIPResult>
  • _getNodeIdFromContractId(name: string, contractId: number): Promise<number>
  • _getWorkloadsByTypes(deploymentName: string, deployments: any, types: WorkloadTypes[]): Promise<Workload[]>
  • _getZmachineData(deploymentName: string, deployments: any, workload: Workload): Promise<Record<string, unknown>>
  • _list(): Promise<string[]>
  • deploy_fqdn(options: GatewayFQDNModel): Promise<{ contracts: { created: any[]; deleted: any[]; updated: any[] } }>
  • deploy_name(options: GatewayNameModel): Promise<{ contracts: { created: any[]; deleted: any[]; updated: any[] } }>
  • exists(name: string): Promise<boolean>
  • getDeploymentContracts(name: string): Promise<any>
  • getDeploymentPath(name: string): string
  • getObj(deploymentName: string): Promise<{ backends: string[]; contractId: any; created: number; description: string; domain: string; message: string; metadata: string; name: string; status: ResultStates; tls_passthrough: boolean; type: WorkloadTypes; version: number }[]>
  • list(): Promise<string[]>
  • reject_update_pubIP_of_oldDeployment(oldDeployments: Deployment[], twinDeployments: TwinDeployment[], name: string): Promise<void>
  • save(name: string, contracts: Record<string, unknown[]>): Promise<void>
  • workloadExists(name: string, oldDeployment: Deployment[]): boolean

Generated using TypeDoc