Skip to content

virt.lima.raw #

fn list #

fn list() ![]VM

struct Archive #

struct Archive {
pub mut:
	location string
	arch     string
	digest   string @[json: digest]
}

struct CPUType #

struct CPUType {
pub mut:
	aarch64 string
	armv7l  string
	riscv64 string
	x86_64  string
}

struct CaCerts #

struct CaCerts {
pub mut:
	remove_defaults bool @[json: removeDefaults]
}

struct Config #

struct Config {
pub mut:
	vm_type              string @[json: vmType]
	os                   string
	arch                 string
	images               []Image
	cpu_type             CPUType @[json: cpuType]
	cpus                 int
	memory               string
	disk                 string
	mounts               []Mount
	mount_type           string @[json: mountType]
	ssh                  SSH
	firmware             Firmware
	audio                map[string]string
	video                Video
	containerd           Containerd
	guest_install_prefix string       @[json: guestInstallPrefix]
	host_resolver        HostResolver @[json: hostResolver]
	propagate_proxy_env  bool         @[json: propagateProxyEnv]
	ca_certs             CaCerts      @[json: caCerts]
	rosetta              Rosetta
	plain                bool
}

struct Containerd #

struct Containerd {
pub mut:
	system   bool
	user     bool
	archives []Archive
}

struct Firmware #

struct Firmware {
pub mut:
	legacy_bios bool @[json: legacyBIOS]
	images      []FirmwareImage
}

struct FirmwareImage #

struct FirmwareImage {
pub mut:
	location string
	arch     string
	digest   string @[json: digest]
	vm_type  string @[json: vmType]
}

struct HostResolver #

struct HostResolver {
pub mut:
	enabled bool
	ipv6    bool
}

struct Image #

struct Image {
pub mut:
	location string
	arch     string
	digest   string @[json: digest]
}

struct Mount #

struct Mount {
pub mut:
	location    string
	mount_point string @[json: mountPoint]
	writable    bool
	sshfs       SSHFS
	// _9p        NineP [json: 9p]
	virtiofs map[string]string
}

struct NineP #

struct NineP {
pub mut:
	security_model   string @[json: securityModel]
	protocol_version string @[json: protocolVersion]
	msize            string
	cache            string
}

struct Rosetta #

struct Rosetta {
pub mut:
	enabled bool
	binfmt  bool
}

struct SSH #

struct SSH {
pub mut:
	local_port            int  @[json: localPort]
	load_dot_ssh_pub_keys bool @[json: loadDotSSHPubKeys]
	forward_agent         bool @[json: forwardAgent]
	forward_x11           bool @[json: forwardX11]
	forward_x11_trusted   bool @[json: forwardX11Trusted]
}

struct SSHFS #

struct SSHFS {
pub mut:
	cache           bool
	follow_symlinks bool   @[json: followSymlinks]
	sftp_driver     string @[json: sftpDriver]
}

struct VM #

@[heap]
struct VM {
pub mut:
	name            string
	status          string
	dir             string
	vm_type         string @[json: vmType]
	arch            string
	cpu_type        string @[json: cpuType]
	cpus            int
	memory          i64
	disk            i64
	ssh_local_port  int    @[json: sshLocalPort]
	ssh_config_file string @[json: sshConfigFile]
	host_agent_pid  int    @[json: hostAgentPID]
	driver_pid      int    @[json: driverPID]
	// config         Config
	ssh_address   string @[json: sshAddress]
	protected     bool
	host_os       string @[json: HostOS]
	host_arch     string @[json: HostArch]
	lima_home     string @[json: LimaHome]
	identity_file string @[json: IdentityFile]
}

struct VNC #

struct VNC {
pub mut:
	display string
}

struct Video #

struct Video {
pub mut:
	display string
	vnc     VNC
}