virtual_device

package
v0.0.0-...-bbc9ce3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: BSD-2-Clause Imports: 9 Imported by: 0

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.

Directories

Path Synopsis
cmd
fvd
fvd generates a Fuchsia Virtual Device (.fvd) file during the build.
fvd generates a Fuchsia Virtual Device (.fvd) file during the build.

Jump to

Keyboard shortcuts

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