~/bend-docscommunity

src/vmm/opts.bend checks

raw source on the hub · import 0xf5a4b65b629b862013786b5337fcbdbf/src/vmm/opts.bend as Opts

1 import
import Base

Types

type Opts source · line 9 · raw

Data

Definitions

def Opts.default source · line 12 · raw

Opts

def Opts.mem source · line 15 · raw

@o:Opts -> U32

def Opts.disk source · line 20 · raw

@o:Opts -> String

def Opts.kernel source · line 25 · raw

@o:Opts -> String

def Opts.share source · line 30 · raw

@o:Opts -> String

def Opts.restore source · line 35 · raw

@o:Opts -> String

def Opts.control source · line 40 · raw

@o:Opts -> String

def Opts.cpus source · line 45 · raw

@o:Opts -> U32

def Opts.vsock source · line 50 · raw

@o:Opts -> String

def Opts.firmware source · line 55 · raw

@o:Opts -> String

def Opts.vars source · line 60 · raw

@o:Opts -> String

def Opts.forward source · line 65 · raw

@o:Opts -> String

def Opts.lan source · line 70 · raw

@o:Opts -> String

def Opts.display source · line 75 · raw

@o:Opts -> String

def Opts.num source · line 81 · raw

@s:String -> @d:U32 -> U32

def Opts.set source · line 84 · raw

@+flag:String -> @+v:String -> @o:Opts -> Opts

def Opts.parse source · line 107 · raw

@args:List<&1, String> -> @o:Opts -> Opts

def Opts.with_forward source · line 120 · raw

@o:Opts -> @fd:String -> Opts

o with this run's --forward (forwards are not the snapshot's: they come from the command line that restores it).

def Opts.with_size source · line 127 · raw

@o:Opts -> @mem:U32 -> @cpus:U32 -> Opts

o with the RAM and vCPUs a restore makes (the snapshot header's).

def Restore.opts source · line 134 · raw

@saved:List<&1, String> -> @now:Opts -> Opts

Options for a restore: the snapshot's own (its saved command line, past the program's words), with this run's --control and --forward.

def Restore.differs.one source · line 144 · raw

@+flag:String -> @+was:String -> @+now:String -> String

A snapshot names the host files and sockets its devices use. Restoring it opens them only when this command line names the same ones, so a snapshot from elsewhere cannot choose what to open, share or replace: the first flag that differs, as a message ("" when none does).

def Restore.differs.first source · line 150 · raw

@+a:String -> @b:String -> String

def Restore.differs source · line 153 · raw

@+was:Opts -> @+now:Opts -> String