Documentation ¶
Index ¶
- func ListenAddr() string
- func LocalhostAddr(addr string) string
- type Config
- type Console
- type FilesystemConfig
- type Guest
- type GuestCmd
- type Image
- type ImageConfig
- type V86Config
- type VM
- func (vm *VM) Close() error
- func (vm *VM) Console() *Console
- func (vm *VM) Exit(reason string)
- func (vm *VM) Guest() *Guest
- func (vm *VM) MacAddress() (string, error)
- func (vm *VM) Network() *vnet.VirtualNetwork
- func (vm *VM) NetworkPipe() (io.ReadWriter, error)
- func (vm *VM) Pause() (err error)
- func (vm *VM) Restart() error
- func (vm *VM) Restore(state io.Reader) error
- func (vm *VM) Run() error
- func (vm *VM) Save() (io.Reader, error)
- func (vm *VM) SaveInitialState() error
- func (vm *VM) SerialPipe() (io.ReadWriter, error)
- func (vm *VM) Start() error
- func (vm *VM) Stop() error
- func (vm *VM) Unpause() (err error)
- func (vm *VM) Wait() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAddr ¶
func ListenAddr() string
func LocalhostAddr ¶
Types ¶
type Console ¶
type Console struct {
// contains filtered or unexported fields
}
func (*Console) Screenshot ¶
func (*Console) SendKeyboard ¶
func (*Console) SetFullscreen ¶
TODO: not working, but webview window might not allow this
type FilesystemConfig ¶
type Guest ¶
type Guest struct {
// contains filtered or unexported fields
}
func (*Guest) ResetNetwork ¶
type GuestCmd ¶
type Image ¶
func (*Image) HasInitialState ¶
func (*Image) InitialStateConfig ¶
func (i *Image) InitialStateConfig() *ImageConfig
type ImageConfig ¶
type V86Config ¶
type V86Config struct { WasmPath string `json:"wasm_path,omitempty"` BIOS *ImageConfig `json:"bios,omitempty"` VGABIOS *ImageConfig `json:"vga_bios,omitempty"` MemorySize int `json:"memory_size,omitempty"` VGAMemorySize int `json:"vga_memory_size,omitempty"` InitialState *ImageConfig `json:"initial_state,omitempty"` NetworkRelayURL string `json:"network_relay_url,omitempty"` Filesystem *FilesystemConfig `json:"filesystem,omitempty"` Autostart bool `json:"autostart,omitempty"` BZImageInitrdFromFilesystem bool `json:"bzimage_initrd_from_filesystem,omitempty"` ScreenContainer string `json:"screen_container,omitempty"` Cmdline string `json:"cmdline,omitempty"` DisableKeyboard bool `json:"disable_keyboard,omitempty"` DisableMouse bool `json:"disable_mouse,omitempty"` HDA *ImageConfig `json:"hda,omitempty"` FDA *ImageConfig `json:"fda,omitempty"` CDROM *ImageConfig `json:"cdrom,omitempty"` BZImage *ImageConfig `json:"bzimage,omitempty"` Initrd *ImageConfig `json:"initrd,omitempty"` SerialContainer string `json:"serial_container,omitempty"` PreserveMAC bool `json:"preserve_mac_from_state_image,omitempty"` InitialStateParts int `json:"initial_state_parts,omitempty"` HasGuestService bool `json:"has_guest_service,omitempty"` }
type VM ¶
type VM struct {
// contains filtered or unexported fields
}
func (*VM) MacAddress ¶
func (*VM) Network ¶
func (vm *VM) Network() *vnet.VirtualNetwork
func (*VM) NetworkPipe ¶
func (vm *VM) NetworkPipe() (io.ReadWriter, error)
NetworkPipe returns an io.ReadWriter of Ethernet packets to the virtual NIC
func (*VM) SaveInitialState ¶
func (*VM) SerialPipe ¶
func (vm *VM) SerialPipe() (io.ReadWriter, error)
SerialPipe returns an io.ReadWriter to the serial/COM1 port
Source Files ¶
Click to show internal directories.
Click to hide internal directories.