Documentation ¶
Index ¶
- Variables
- type Device
- type Drive
- func (*Drive) Descriptor() ([]byte, []int)deprecated
- func (x *Drive) GetDevice() *Device
- func (x *Drive) GetId() string
- func (x *Drive) GetImage() string
- func (x *Drive) GetIsFilename() bool
- func (x *Drive) GetPciAddress() string
- func (*Drive) ProtoMessage()
- func (x *Drive) ProtoReflect() protoreflect.Message
- func (x *Drive) Reset()
- func (x *Drive) String() string
- type HardwareProfile
- func (*HardwareProfile) Descriptor() ([]byte, []int)deprecated
- func (x *HardwareProfile) GetArch() string
- func (x *HardwareProfile) GetCpuCount() uint32
- func (x *HardwareProfile) GetDrives() []*Drive
- func (x *HardwareProfile) GetEnableKvm() bool
- func (x *HardwareProfile) GetHci() string
- func (x *HardwareProfile) GetMac() string
- func (x *HardwareProfile) GetNetworkDevices() []*Netdev
- func (x *HardwareProfile) GetRam() string
- func (*HardwareProfile) ProtoMessage()
- func (x *HardwareProfile) ProtoReflect() protoreflect.Message
- func (x *HardwareProfile) Reset()
- func (x *HardwareProfile) String() string
- type Netdev
- type QEMU
- type VirtualDevice
- func (*VirtualDevice) Descriptor() ([]byte, []int)deprecated
- func (x *VirtualDevice) GetDrive() *Drive
- func (x *VirtualDevice) GetHw() *HardwareProfile
- func (x *VirtualDevice) GetInitrd() string
- func (x *VirtualDevice) GetKernel() string
- func (x *VirtualDevice) GetKernelArgs() []string
- func (x *VirtualDevice) GetName() string
- func (x *VirtualDevice) GetQemu() *QEMU
- func (*VirtualDevice) ProtoMessage()
- func (x *VirtualDevice) ProtoReflect() protoreflect.Message
- func (x *VirtualDevice) Reset()
- func (x *VirtualDevice) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_virtual_device_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // Named fields that and can be added to `-device` options. Options []string `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*Device) Descriptor
deprecated
func (*Device) GetOptions ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) ProtoReflect ¶
func (x *Device) ProtoReflect() protoreflect.Message
type Drive ¶
type Drive struct { // The name of the drive. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // A pointer to the image to use as a basis for the drive. Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` // If true, image is the name of a file to use for this drive. This is useful // if the drive is, for example, a MinFS image. The path may be relative or // absolute, depending on the use case. // // If false, image is the name of an image in images.json whose path attribute // points to the file backing this device. // // Defaults to false. IsFilename bool `protobuf:"varint,3,opt,name=is_filename,json=isFilename,proto3" json:"is_filename,omitempty"` // DEPRECATED: Use device instead. // TODO(kjharland): Refactor //tools/qemu.go to use device and remove this. // // The PCI address for the device. // // Defaults to the empty string. PciAddress string `protobuf:"bytes,4,opt,name=pci_address,json=pciAddress,proto3" json:"pci_address,omitempty"` Device *Device `protobuf:"bytes,5,opt,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
A PCI disk drive.
func (*Drive) Descriptor
deprecated
func (*Drive) GetIsFilename ¶
func (*Drive) GetPciAddress ¶
func (*Drive) ProtoMessage ¶
func (*Drive) ProtoMessage()
func (*Drive) ProtoReflect ¶
func (x *Drive) ProtoReflect() protoreflect.Message
type HardwareProfile ¶
type HardwareProfile struct { // The CPU architecture. // // This must be one of: // - arm64 // - x64 Arch string `protobuf:"bytes,1,opt,name=arch,proto3" json:"arch,omitempty"` // The number of CPUs. // // Defaults to 1. CpuCount uint32 `protobuf:"varint,2,opt,name=cpu_count,json=cpuCount,proto3" json:"cpu_count,omitempty"` // The amount of RAM expressed as a string like "5M". // // The number must be a positive 64-bit integer in base 10. // The unit must be any of: // - b|B for bytes // - k|K for kilobytes // - m|M for megabytes // - g|G for gigabytes. Ram string `protobuf:"bytes,3,opt,name=ram,proto3" json:"ram,omitempty"` // The MAC address to use for the device. Mac string `protobuf:"bytes,4,opt,name=mac,proto3" json:"mac,omitempty"` // Optional networking devices. // // If unset, networking is disabled. NetworkDevices []*Netdev `protobuf:"bytes,5,rep,name=network_devices,json=networkDevices,proto3" json:"network_devices,omitempty"` // Optional list of drives to mount. // // If any drive is a USB, remember to specify a USB host controller. Drives []*Drive `protobuf:"bytes,6,rep,name=drives,proto3" json:"drives,omitempty"` // Optional USB host controller interface. // // This must be set if USB drives are specified. The only supported value is // 'xhci'. Hci string `protobuf:"bytes,7,opt,name=hci,proto3" json:"hci,omitempty"` // Whether to enable KVM. // // Defaults to false. EnableKvm bool `protobuf:"varint,8,opt,name=enable_kvm,json=enableKvm,proto3" json:"enable_kvm,omitempty"` // contains filtered or unexported fields }
func (*HardwareProfile) Descriptor
deprecated
func (*HardwareProfile) Descriptor() ([]byte, []int)
Deprecated: Use HardwareProfile.ProtoReflect.Descriptor instead.
func (*HardwareProfile) GetArch ¶
func (x *HardwareProfile) GetArch() string
func (*HardwareProfile) GetCpuCount ¶
func (x *HardwareProfile) GetCpuCount() uint32
func (*HardwareProfile) GetDrives ¶
func (x *HardwareProfile) GetDrives() []*Drive
func (*HardwareProfile) GetEnableKvm ¶
func (x *HardwareProfile) GetEnableKvm() bool
func (*HardwareProfile) GetHci ¶
func (x *HardwareProfile) GetHci() string
func (*HardwareProfile) GetMac ¶
func (x *HardwareProfile) GetMac() string
func (*HardwareProfile) GetNetworkDevices ¶
func (x *HardwareProfile) GetNetworkDevices() []*Netdev
func (*HardwareProfile) GetRam ¶
func (x *HardwareProfile) GetRam() string
func (*HardwareProfile) ProtoMessage ¶
func (*HardwareProfile) ProtoMessage()
func (*HardwareProfile) ProtoReflect ¶
func (x *HardwareProfile) ProtoReflect() protoreflect.Message
func (*HardwareProfile) Reset ¶
func (x *HardwareProfile) Reset()
func (*HardwareProfile) String ¶
func (x *HardwareProfile) String() string
type Netdev ¶
type Netdev struct { Device *Device `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // One of "user" or "tap". Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*Netdev) Descriptor
deprecated
func (*Netdev) ProtoMessage ¶
func (*Netdev) ProtoMessage()
func (*Netdev) ProtoReflect ¶
func (x *Netdev) ProtoReflect() protoreflect.Message
type QEMU ¶
type QEMU struct { // The maximum supported QEMU version. MaxVersion string `protobuf:"bytes,1,opt,name=max_version,json=maxVersion,proto3" json:"max_version,omitempty"` // The minimum supported QEMU version. MinVersion string `protobuf:"bytes,2,opt,name=min_version,json=minVersion,proto3" json:"min_version,omitempty"` // contains filtered or unexported fields }
QEMU describes how to run a VirtualDevice in QEMU.
func (*QEMU) Descriptor
deprecated
func (*QEMU) GetMaxVersion ¶
func (*QEMU) GetMinVersion ¶
func (*QEMU) ProtoMessage ¶
func (*QEMU) ProtoMessage()
func (*QEMU) ProtoReflect ¶
func (x *QEMU) ProtoReflect() protoreflect.Message
type VirtualDevice ¶
type VirtualDevice struct { // The name of this virtual device. // // This is meant to help humans identify this device. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Metadata indicating how to run QEMU. Qemu *QEMU `protobuf:"bytes,2,opt,name=qemu,proto3" json:"qemu,omitempty"` // The name of the system kernel image in images.json. Kernel string `protobuf:"bytes,3,opt,name=kernel,proto3" json:"kernel,omitempty"` // The name of the initial ramdisk image in images.json. Initrd string `protobuf:"bytes,4,opt,name=initrd,proto3" json:"initrd,omitempty"` // Optional. The primary disk drive for this device. Drive *Drive `protobuf:"bytes,5,opt,name=drive,proto3" json:"drive,omitempty"` // The device characterics. Hw *HardwareProfile `protobuf:"bytes,6,opt,name=hw,proto3" json:"hw,omitempty"` // Kernel command line arguments. KernelArgs []string `protobuf:"bytes,7,rep,name=kernel_args,json=kernelArgs,proto3" json:"kernel_args,omitempty"` // contains filtered or unexported fields }
VirtualDevice describes how to run Fuchsia using a vm or emulator.
This message should capture the set of system images necessary to boot the device, as well as the hardware characteristics of the device.
Its primary purpose is to carry virtualization options across system boundaries. For example, Fuchsia infra may pass a file containing this message from the build to a tool that runs Fuchsia in QEMU, without inspecting the message itself.
func (*VirtualDevice) Descriptor
deprecated
func (*VirtualDevice) Descriptor() ([]byte, []int)
Deprecated: Use VirtualDevice.ProtoReflect.Descriptor instead.
func (*VirtualDevice) GetDrive ¶
func (x *VirtualDevice) GetDrive() *Drive
func (*VirtualDevice) GetHw ¶
func (x *VirtualDevice) GetHw() *HardwareProfile
func (*VirtualDevice) GetInitrd ¶
func (x *VirtualDevice) GetInitrd() string
func (*VirtualDevice) GetKernel ¶
func (x *VirtualDevice) GetKernel() string
func (*VirtualDevice) GetKernelArgs ¶
func (x *VirtualDevice) GetKernelArgs() []string
func (*VirtualDevice) GetName ¶
func (x *VirtualDevice) GetName() string
func (*VirtualDevice) GetQemu ¶
func (x *VirtualDevice) GetQemu() *QEMU
func (*VirtualDevice) ProtoMessage ¶
func (*VirtualDevice) ProtoMessage()
func (*VirtualDevice) ProtoReflect ¶
func (x *VirtualDevice) ProtoReflect() protoreflect.Message
func (*VirtualDevice) Reset ¶
func (x *VirtualDevice) Reset()
func (*VirtualDevice) String ¶
func (x *VirtualDevice) String() string
Click to show internal directories.
Click to hide internal directories.