Documentation ¶
Overview ¶
Package virtual_device implements helpers for running Fuchsia on virtual platforms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AEMUCommand ¶
func AEMUCommand(b *qemu.AEMUCommandBuilder, fvd *fvdpb.VirtualDevice, images build.ImageManifest) error
AEMUCommand sets options to run Fuchsia in AEMU on the given AEMUCommandBuilder.
This returns an error if `Validate(fvd, images)` returns an error.
func Default ¶
func Default() *fvdpb.VirtualDevice
Default returns a VirtualDevice with default values.
func QEMUCommand ¶
func QEMUCommand(b *qemu.QEMUCommandBuilder, fvd *fvdpb.VirtualDevice, images build.ImageManifest) error
QEMUCommand sets options to run Fuchsia in QEMU on the given QEMUCommandBuilder.
This returns an error if `Validate(fvd, images)` returns an error.
This function is hermetic; It does not lookup or set the path to the QEMU binary, or interact with the filesystem or environment in anyway. These actions are left to the caller.
The caller is free to set additional options on the builder before calling this function or after this function returns.
func Validate ¶
func Validate(fvd *fvdpb.VirtualDevice, images build.ImageManifest) error
Validate returns nil iff the given FVD is valid for the given ImageManifest.
All system images referenced in the FVD must exist in the image manifest.
Types ¶
This section is empty.