UNPKG

@vmngr/libvirt

Version:

Libvirt bindings for Node.js®

83 lines (82 loc) 1.55 kB
export declare interface DomainOsDesc { type?: { arch?: string; machine?: string; value?: string; }; boot?: { dev?: string; }; } export declare interface DomainDiskDesc { type?: "file"; device?: "disk"; driver?: { name?: "qemu"; type?: "qcow2"; }; source?: { file?: string; }; target?: { dev?: string; bus?: "virtio"; }; } export declare interface DomainInterfaceDesc { type?: "network"; source?: { network?: string; }; mac?: { address?: string; }; model?: { type?: "virtio"; }; } export declare interface DomainGraphicsDesc { type?: "vnc"; port?: number; listen?: string; passwd?: string; } export declare interface DomainDesc { type?: "kvm"; id?: number; name?: string; uuid?: string; memory?: { unit?: "KiB"; value?: number; }; currentMemory?: { unit?: "KiB"; value?: number; }; vcpu?: { placement?: "static"; value?: number; }; os?: DomainOsDesc; devices?: Array<{ type: "emulator"; emulator: { value?: string; }; } | { type: "disk"; disk: DomainDiskDesc; } | { type: "interface"; interface: DomainInterfaceDesc; } | { type: "console"; console: { type?: "pty"; }; } | { type: "graphics"; graphics: DomainGraphicsDesc; }>; }