qemu

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BinAARCH64 = "qemu-system-aarch64"
	BinX8664   = "qemu-system-x86_64"
)

Qemu binaries

Variables

View Source
var Binaries = []string{
	BinAARCH64,
	BinX8664,
}

Binaries is a list of Qemu binaries

Functions

This section is empty.

Types

type InstallDir

type InstallDir string

InstallDir is a typical Unix installation directory that contains `bin` and `share`.

func HostDir

func HostDir() (InstallDir, error)

HostDir returns the install directory for Qemu on the host.

func LimaDir

func LimaDir() InstallDir

LimaDir returns the install directory for Qemu to be utilised by Lima.

func (InstallDir) Bin

func (i InstallDir) Bin() string

Bin is the directory for Qemu binaries. Typically what gets added to PATH.

func (InstallDir) BinsEnvVar

func (i InstallDir) BinsEnvVar() []string

BinsEnvVar returns the environment variables for the Qemu binaries.

QEMU_SYSTEM_X86_64=/path/to/x86-bin
QEMU_SYSTEM_AARCH64=/path/to/aarch64-bin

func (InstallDir) Root

func (i InstallDir) Root() string

Root points to this InstallDir.

func (InstallDir) Share

func (i InstallDir) Share() string

Share is the corresponding share directory for BinDir.

Jump to

Keyboard shortcuts

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