Methods
_createComputeCapacity
Parameters
cpu: number
memory: number
_createMachineNetwork
- _createMachineNetwork(networkName: string, ip: string, planetary: boolean, public_ip?: string): ZmachineNetwork
Parameters
networkName: string
ip: string
planetary: boolean
public_ip: string = ""
_createNetworkInterface
Parameters
networkName: string
ip: string
create
- create(name: string, flist: string, cpu: number, memory: number, rootfs_size: number, disks: Mount[], networkName: string, ip: string, planetary: boolean, public_ip: string, entrypoint: string, env: Record<string, unknown>, metadata?: string, description?: string, version?: number, corex?: boolean, gpus?: string[]): Workload
Parameters
name: string
flist: string
cpu: number
memory: number
rootfs_size: number
networkName: string
ip: string
planetary: boolean
public_ip: string
entrypoint: string
env: Record<string, unknown>
metadata: string = ""
description: string = ""
version: number = 0
corex: boolean = false
gpus: string[] = []