Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Network

Index

Constructors

Properties

_accessNodes: number[] = []
_endpoints: Record<string, string> = {}
accessPoints: AccessPoint[] = []
backendStorage: BackendStorage
capacity: Nodes
deployments: Deployment[] = []
ipRange: string
name: string
networks: Znet[] = []
nodes: Node[] = []
reservedSubnets: string[] = []
rmb: RMB
tfClient: TFClient
wireguardConfig: string

Methods

  • ValidateFreeSubnet(subnet: any): string
  • _save(network: any): Promise<void>
  • addAccess(node_id: number, ipv4: boolean): Promise<string>
  • addNode(node_id: number, metadata?: string, description?: string, subnet?: string): Promise<Workload>
  • delete(): Promise<void>
  • deleteNode(node_id: number): Promise<number>
  • deleteReservedIp(node_id: number, ip: string): string
  • exists(): Promise<boolean>
  • generatePeers(): Promise<void>
  • getAccessNodes(): Promise<number[]>
  • getFreeIP(node_id: number, subnet?: string): string
  • getFreePort(node_id: number): Promise<number>
  • getFreeSubnet(): string
  • getNetwork(): Promise<any>
  • getNetworkNames(): Promise<string[]>
  • getNetworksPath(): string
  • getNodeEndpoint(node_id: number): Promise<string>
  • getNodeReservedIps(node_id: number): string[]
  • getNodeSubnet(node_id: number): string
  • getNodeWGListeningPort(node_id: number): number
  • getNodeWGPublicKey(node_id: number): Promise<string>
  • getPublicKey(privateKey: string): string
  • getReservedSubnets(): string[]
  • getWireguardConfig(subnet: string, userprivKey: string, peerPubkey: string, endpoint: string): string
  • hasAccessPoint(node_id: number): boolean
  • isPrivateIP(ip: string): boolean
  • load(): Promise<void>
  • nodeExists(node_id: number): boolean
  • save(contract_id?: number, node_id?: number): Promise<void>
  • saveIfKVStoreBackend(extrinsics: any): Promise<void>
  • updateNetwork(znet: any): Znet
  • updateNetworkDeployments(): void
  • validateUserIP(node_id: number, ip_address?: string): string
  • wgRoutingIP(subnet: string): string

Generated using TypeDoc