proto

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: 4 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetModel

func (x *Device) GetModel() string

func (*Device) GetOptions

func (x *Device) GetOptions() []string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

func (x *Device) ProtoReflect() protoreflect.Message

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Drive.ProtoReflect.Descriptor instead.

func (*Drive) GetDevice

func (x *Drive) GetDevice() *Device

func (*Drive) GetId

func (x *Drive) GetId() string

func (*Drive) GetImage

func (x *Drive) GetImage() string

func (*Drive) GetIsFilename

func (x *Drive) GetIsFilename() bool

func (*Drive) GetPciAddress

func (x *Drive) GetPciAddress() string

func (*Drive) ProtoMessage

func (*Drive) ProtoMessage()

func (*Drive) ProtoReflect

func (x *Drive) ProtoReflect() protoreflect.Message

func (*Drive) Reset

func (x *Drive) Reset()

func (*Drive) String

func (x *Drive) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Netdev.ProtoReflect.Descriptor instead.

func (*Netdev) GetDevice

func (x *Netdev) GetDevice() *Device

func (*Netdev) GetId

func (x *Netdev) GetId() string

func (*Netdev) GetKind

func (x *Netdev) GetKind() string

func (*Netdev) ProtoMessage

func (*Netdev) ProtoMessage()

func (*Netdev) ProtoReflect

func (x *Netdev) ProtoReflect() protoreflect.Message

func (*Netdev) Reset

func (x *Netdev) Reset()

func (*Netdev) String

func (x *Netdev) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use QEMU.ProtoReflect.Descriptor instead.

func (*QEMU) GetMaxVersion

func (x *QEMU) GetMaxVersion() string

func (*QEMU) GetMinVersion

func (x *QEMU) GetMinVersion() string

func (*QEMU) ProtoMessage

func (*QEMU) ProtoMessage()

func (*QEMU) ProtoReflect

func (x *QEMU) ProtoReflect() protoreflect.Message

func (*QEMU) Reset

func (x *QEMU) Reset()

func (*QEMU) String

func (x *QEMU) String() string

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

Jump to

Keyboard shortcuts

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