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) Share ¶
func (i InstallDir) Share() string
Share is the corresponding share directory for BinDir.
Click to show internal directories.
Click to hide internal directories.