qemu

package
v0.0.0-...-8582de0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Aarch64ExecutableName = "qemu-system-aarch64"
	X8664ExecutableName   = "qemu-system-x86_64"
)

Variables

View Source
var (
	ErrARM64Emulation             = errors.New("qemu: you are trying to emulate arm64")
	ErrExecutableNotFound         = errors.New("qemu: executable not found")
	ErrUnsupportedArchitecture    = errors.New("qemu: unsupported architecture")
	ErrUnsupportedOperatingSystem = errors.New("qemu: unsupported operating system")
	ErrX8664Emulation             = errors.New("qemu: you are trying to emulate x86_64")
)

Functions

This section is empty.

Types

type CommandOptions

type CommandOptions struct {
	CPU          int
	Disks        []CommandOptionsDisk
	Memory       int
	MACAddress   string
	PortForwards map[string]string
}

type CommandOptionsDisk

type CommandOptionsDisk struct {
	Path     string
	ReadOnly bool
}

type NewOptions

type NewOptions struct {
	ExecutableName string
}

type QEMU

type QEMU struct {
	// contains filtered or unexported fields
}

func New

func New(opts NewOptions) (*QEMU, error)

func (*QEMU) Command

func (q *QEMU) Command(opts CommandOptions) (*exec.Cmd, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL