openapi

package
v0.0.0-...-625f738 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0, Apache-2.0, Apache-2.0 Imports: 22 Imported by: 0

README

Go API client for openapi

Local HTTP based API for managing and inspecting a cloud-hypervisor virtual machine.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.3.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./openapi"

Documentation for API Endpoints

All URIs are relative to http://localhost/api/v1

Class Method HTTP request Description
DefaultApi BootVM Put /vm.boot Boot the previously created VM instance.
DefaultApi CreateVM Put /vm.create Create the cloud-hypervisor Virtual Machine (VM) instance. The instance is not booted, only created.
DefaultApi DeleteVM Put /vm.delete Delete the cloud-hypervisor Virtual Machine (VM) instance.
DefaultApi PauseVM Put /vm.pause Pause a previously booted VM instance.
DefaultApi RebootVM Put /vm.reboot Reboot the VM instance.
DefaultApi ResumeVM Put /vm.resume Resume a previously paused VM instance.
DefaultApi ShutdownVM Put /vm.shutdown Shut the VM instance down.
DefaultApi ShutdownVMM Put /vmm.shutdown Shuts the cloud-hypervisor VMM.
DefaultApi VmAddDevicePut Put /vm.add-device Add a new device to the VM
DefaultApi VmAddDiskPut Put /vm.add-disk Add a new disk to the VM
DefaultApi VmAddFsPut Put /vm.add-fs Add a new virtio-fs device to the VM
DefaultApi VmAddNetPut Put /vm.add-net Add a new network device to the VM
DefaultApi VmAddPmemPut Put /vm.add-pmem Add a new pmem device to the VM
DefaultApi VmAddVsockPut Put /vm.add-vsock Add a new vsock device to the VM
DefaultApi VmCountersGet Get /vm.counters Get counters from the VM
DefaultApi VmInfoGet Get /vm.info Returns general information about the cloud-hypervisor Virtual Machine (VM) instance.
DefaultApi VmRemoveDevicePut Put /vm.remove-device Remove a device from the VM
DefaultApi VmResizePut Put /vm.resize Resize the VM
DefaultApi VmResizeZonePut Put /vm.resize-zone Resize a memory zone
DefaultApi VmRestorePut Put /vm.restore Restore a VM from a snapshot.
DefaultApi VmSnapshotPut Put /vm.snapshot Returns a VM snapshot.
DefaultApi VmmPingGet Get /vmm.ping Ping the VMM to check for API server availability

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

Types

type APIClient

type APIClient struct {
	DefaultApi *DefaultApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Cloud Hypervisor API API v0.3.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

ChangeBasePath changes base path to allow switching to mocks

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResonse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type BalloonConfig

type BalloonConfig struct {
	Size int64 `json:"size"`
}

BalloonConfig struct for BalloonConfig

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type CmdLineConfig

type CmdLineConfig struct {
	Args string `json:"args"`
}

CmdLineConfig struct for CmdLineConfig

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	Debug         bool              `json:"debug,omitempty"`
	Servers       []ServerConfiguration
	HTTPClient    *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerUrl

func (c *Configuration) ServerUrl(index int, variables map[string]string) (string, error)

ServerUrl returns URL based on server settings

type ConsoleConfig

type ConsoleConfig struct {
	File  string `json:"file,omitempty"`
	Mode  string `json:"mode"`
	Iommu bool   `json:"iommu,omitempty"`
}

ConsoleConfig struct for ConsoleConfig

type CpuTopology

type CpuTopology struct {
	ThreadsPerCore int32 `json:"threads_per_core,omitempty"`
	CoresPerDie    int32 `json:"cores_per_die,omitempty"`
	DiesPerPackage int32 `json:"dies_per_package,omitempty"`
	Packages       int32 `json:"packages,omitempty"`
}

CpuTopology struct for CpuTopology

type CpusConfig

type CpusConfig struct {
	BootVcpus   int32       `json:"boot_vcpus"`
	MaxVcpus    int32       `json:"max_vcpus"`
	Topology    CpuTopology `json:"topology,omitempty"`
	MaxPhysBits int32       `json:"max_phys_bits,omitempty"`
}

CpusConfig struct for CpusConfig

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

func (*DefaultApiService) BootVM

BootVM Boot the previously created VM instance.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

func (*DefaultApiService) CreateVM

func (a *DefaultApiService) CreateVM(ctx _context.Context, vmConfig VmConfig) (*_nethttp.Response, error)

CreateVM Create the cloud-hypervisor Virtual Machine (VM) instance. The instance is not booted, only created.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vmConfig The VM configuration

func (*DefaultApiService) DeleteVM

DeleteVM Delete the cloud-hypervisor Virtual Machine (VM) instance.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

func (*DefaultApiService) PauseVM

PauseVM Pause a previously booted VM instance.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

func (*DefaultApiService) RebootVM

RebootVM Reboot the VM instance.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

func (*DefaultApiService) ResumeVM

ResumeVM Resume a previously paused VM instance.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

func (*DefaultApiService) ShutdownVM

func (a *DefaultApiService) ShutdownVM(ctx _context.Context) (*_nethttp.Response, error)

ShutdownVM Shut the VM instance down.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

func (*DefaultApiService) ShutdownVMM

func (a *DefaultApiService) ShutdownVMM(ctx _context.Context) (*_nethttp.Response, error)

ShutdownVMM Shuts the cloud-hypervisor VMM.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

func (*DefaultApiService) VmAddDevicePut

func (a *DefaultApiService) VmAddDevicePut(ctx _context.Context, vmAddDevice VmAddDevice) (PciDeviceInfo, *_nethttp.Response, error)

VmAddDevicePut Add a new device to the VM

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vmAddDevice The path of the new device

@return PciDeviceInfo

func (*DefaultApiService) VmAddDiskPut

func (a *DefaultApiService) VmAddDiskPut(ctx _context.Context, diskConfig DiskConfig) (PciDeviceInfo, *_nethttp.Response, error)

VmAddDiskPut Add a new disk to the VM

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param diskConfig The details of the new disk

@return PciDeviceInfo

func (*DefaultApiService) VmAddFsPut

func (a *DefaultApiService) VmAddFsPut(ctx _context.Context, fsConfig FsConfig) (PciDeviceInfo, *_nethttp.Response, error)

VmAddFsPut Add a new virtio-fs device to the VM

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param fsConfig The details of the new virtio-fs

@return PciDeviceInfo

func (*DefaultApiService) VmAddNetPut

func (a *DefaultApiService) VmAddNetPut(ctx _context.Context, netConfig NetConfig) (PciDeviceInfo, *_nethttp.Response, error)

VmAddNetPut Add a new network device to the VM

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param netConfig The details of the new network device

@return PciDeviceInfo

func (*DefaultApiService) VmAddPmemPut

func (a *DefaultApiService) VmAddPmemPut(ctx _context.Context, pmemConfig PmemConfig) (PciDeviceInfo, *_nethttp.Response, error)

VmAddPmemPut Add a new pmem device to the VM

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param pmemConfig The details of the new pmem device

@return PciDeviceInfo

func (*DefaultApiService) VmAddVsockPut

func (a *DefaultApiService) VmAddVsockPut(ctx _context.Context, vsockConfig VsockConfig) (PciDeviceInfo, *_nethttp.Response, error)

VmAddVsockPut Add a new vsock device to the VM

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vsockConfig The details of the new vsock device

@return PciDeviceInfo

func (*DefaultApiService) VmCountersGet

func (a *DefaultApiService) VmCountersGet(ctx _context.Context) (map[string]map[string]int64, *_nethttp.Response, error)

VmCountersGet Get counters from the VM

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return map[string]map[string]int64

func (*DefaultApiService) VmInfoGet

VmInfoGet Returns general information about the cloud-hypervisor Virtual Machine (VM) instance.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return VmInfo

func (*DefaultApiService) VmRemoveDevicePut

func (a *DefaultApiService) VmRemoveDevicePut(ctx _context.Context, vmRemoveDevice VmRemoveDevice) (*_nethttp.Response, error)

VmRemoveDevicePut Remove a device from the VM

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vmRemoveDevice The identifier of the device

func (*DefaultApiService) VmResizePut

func (a *DefaultApiService) VmResizePut(ctx _context.Context, vmResize VmResize) (*_nethttp.Response, error)

VmResizePut Resize the VM

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vmResize The target size for the VM

func (*DefaultApiService) VmResizeZonePut

func (a *DefaultApiService) VmResizeZonePut(ctx _context.Context, vmResizeZone VmResizeZone) (*_nethttp.Response, error)

VmResizeZonePut Resize a memory zone

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vmResizeZone The target size for the memory zone

func (*DefaultApiService) VmRestorePut

func (a *DefaultApiService) VmRestorePut(ctx _context.Context, restoreConfig RestoreConfig) (*_nethttp.Response, error)

VmRestorePut Restore a VM from a snapshot.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param restoreConfig The restore configuration

func (*DefaultApiService) VmSnapshotPut

func (a *DefaultApiService) VmSnapshotPut(ctx _context.Context, vmSnapshotConfig VmSnapshotConfig) (*_nethttp.Response, error)

VmSnapshotPut Returns a VM snapshot.

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param vmSnapshotConfig The snapshot configuration

func (*DefaultApiService) VmmPingGet

VmmPingGet Ping the VMM to check for API server availability

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return VmmPingResponse

type DeviceConfig

type DeviceConfig struct {
	Path  string `json:"path"`
	Iommu bool   `json:"iommu,omitempty"`
	Id    string `json:"id,omitempty"`
}

DeviceConfig struct for DeviceConfig

type DiskConfig

type DiskConfig struct {
	Path        string `json:"path"`
	Readonly    bool   `json:"readonly,omitempty"`
	Direct      bool   `json:"direct,omitempty"`
	Iommu       bool   `json:"iommu,omitempty"`
	NumQueues   int32  `json:"num_queues,omitempty"`
	QueueSize   int32  `json:"queue_size,omitempty"`
	VhostUser   bool   `json:"vhost_user,omitempty"`
	VhostSocket string `json:"vhost_socket,omitempty"`
	PollQueue   bool   `json:"poll_queue,omitempty"`
	Id          string `json:"id,omitempty"`
}

DiskConfig struct for DiskConfig

type FsConfig

type FsConfig struct {
	Tag       string `json:"tag"`
	Socket    string `json:"socket"`
	NumQueues int32  `json:"num_queues,omitempty"`
	QueueSize int32  `json:"queue_size,omitempty"`
	Dax       bool   `json:"dax,omitempty"`
	CacheSize int64  `json:"cache_size,omitempty"`
	Id        string `json:"id,omitempty"`
}

FsConfig struct for FsConfig

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type InitramfsConfig

type InitramfsConfig struct {
	Path string `json:"path"`
}

InitramfsConfig struct for InitramfsConfig

type KernelConfig

type KernelConfig struct {
	Path string `json:"path"`
}

KernelConfig struct for KernelConfig

type MemoryConfig

type MemoryConfig struct {
	Size           int64              `json:"size"`
	HotplugSize    int64              `json:"hotplug_size,omitempty"`
	HotpluggedSize int64              `json:"hotplugged_size,omitempty"`
	Mergeable      bool               `json:"mergeable,omitempty"`
	HotplugMethod  string             `json:"hotplug_method,omitempty"`
	Shared         bool               `json:"shared,omitempty"`
	Hugepages      bool               `json:"hugepages,omitempty"`
	Zones          []MemoryZoneConfig `json:"zones,omitempty"`
}

MemoryConfig struct for MemoryConfig

type MemoryZoneConfig

type MemoryZoneConfig struct {
	Id             string `json:"id"`
	Size           int64  `json:"size"`
	File           string `json:"file,omitempty"`
	Mergeable      bool   `json:"mergeable,omitempty"`
	Shared         bool   `json:"shared,omitempty"`
	Hugepages      bool   `json:"hugepages,omitempty"`
	HostNumaNode   int32  `json:"host_numa_node,omitempty"`
	HotplugSize    int64  `json:"hotplug_size,omitempty"`
	HotpluggedSize int64  `json:"hotplugged_size,omitempty"`
}

MemoryZoneConfig struct for MemoryZoneConfig

type NetConfig

type NetConfig struct {
	Tap         string `json:"tap,omitempty"`
	Ip          string `json:"ip,omitempty"`
	Mask        string `json:"mask,omitempty"`
	Mac         string `json:"mac,omitempty"`
	Iommu       bool   `json:"iommu,omitempty"`
	NumQueues   int32  `json:"num_queues,omitempty"`
	QueueSize   int32  `json:"queue_size,omitempty"`
	VhostUser   bool   `json:"vhost_user,omitempty"`
	VhostSocket string `json:"vhost_socket,omitempty"`
	Id          string `json:"id,omitempty"`
}

NetConfig struct for NetConfig

type NumaConfig

type NumaConfig struct {
	GuestNumaId int32          `json:"guest_numa_id"`
	Cpus        []int32        `json:"cpus,omitempty"`
	Distances   []NumaDistance `json:"distances,omitempty"`
	MemoryZones []string       `json:"memory_zones,omitempty"`
}

NumaConfig struct for NumaConfig

type NumaDistance

type NumaDistance struct {
	Destination int32 `json:"destination"`
	Distance    int32 `json:"distance"`
}

NumaDistance struct for NumaDistance

type PciDeviceInfo

type PciDeviceInfo struct {
	Id  string `json:"id"`
	Bdf string `json:"bdf"`
}

PciDeviceInfo Information about a PCI device

type PmemConfig

type PmemConfig struct {
	File          string `json:"file"`
	Size          int64  `json:"size,omitempty"`
	Iommu         bool   `json:"iommu,omitempty"`
	Mergeable     bool   `json:"mergeable,omitempty"`
	DiscardWrites bool   `json:"discard_writes,omitempty"`
	Id            string `json:"id,omitempty"`
}

PmemConfig struct for PmemConfig

type RestoreConfig

type RestoreConfig struct {
	SourceUrl string `json:"source_url"`
	Prefault  bool   `json:"prefault,omitempty"`
}

RestoreConfig struct for RestoreConfig

type RngConfig

type RngConfig struct {
	Src   string `json:"src"`
	Iommu bool   `json:"iommu,omitempty"`
}

RngConfig struct for RngConfig

type ServerConfiguration

type ServerConfiguration struct {
	Url         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type SgxEpcConfig

type SgxEpcConfig struct {
	Size     int64 `json:"size"`
	Prefault bool  `json:"prefault,omitempty"`
}

SgxEpcConfig struct for SgxEpcConfig

type VmAddDevice

type VmAddDevice struct {
	Path  string `json:"path,omitempty"`
	Iommu bool   `json:"iommu,omitempty"`
	Id    string `json:"id,omitempty"`
}

VmAddDevice struct for VmAddDevice

type VmConfig

type VmConfig struct {
	Cpus      CpusConfig       `json:"cpus,omitempty"`
	Memory    MemoryConfig     `json:"memory,omitempty"`
	Kernel    KernelConfig     `json:"kernel"`
	Initramfs *InitramfsConfig `json:"initramfs,omitempty"`
	Cmdline   CmdLineConfig    `json:"cmdline,omitempty"`
	Disks     []DiskConfig     `json:"disks,omitempty"`
	Net       []NetConfig      `json:"net,omitempty"`
	Rng       RngConfig        `json:"rng,omitempty"`
	Balloon   BalloonConfig    `json:"balloon,omitempty"`
	Fs        []FsConfig       `json:"fs,omitempty"`
	Pmem      []PmemConfig     `json:"pmem,omitempty"`
	Serial    ConsoleConfig    `json:"serial,omitempty"`
	Console   ConsoleConfig    `json:"console,omitempty"`
	Devices   []DeviceConfig   `json:"devices,omitempty"`
	Vsock     VsockConfig      `json:"vsock,omitempty"`
	SgxEpc    []SgxEpcConfig   `json:"sgx_epc,omitempty"`
	Numa      []NumaConfig     `json:"numa,omitempty"`
	Iommu     bool             `json:"iommu,omitempty"`
	Watchdog  bool             `json:"watchdog,omitempty"`
}

VmConfig Virtual machine configuration

type VmInfo

type VmInfo struct {
	Config           VmConfig `json:"config"`
	State            string   `json:"state"`
	MemoryActualSize int64    `json:"memory_actual_size,omitempty"`
}

VmInfo Virtual Machine information

type VmRemoveDevice

type VmRemoveDevice struct {
	Id string `json:"id,omitempty"`
}

VmRemoveDevice struct for VmRemoveDevice

type VmResize

type VmResize struct {
	DesiredVcpus int32 `json:"desired_vcpus,omitempty"`
	// desired memory ram in bytes
	DesiredRam int64 `json:"desired_ram,omitempty"`
	// desired balloon size in bytes
	DesiredBalloon int64 `json:"desired_balloon,omitempty"`
}

VmResize struct for VmResize

type VmResizeZone

type VmResizeZone struct {
	Id string `json:"id,omitempty"`
	// desired memory zone size in bytes
	DesiredRam int64 `json:"desired_ram,omitempty"`
}

VmResizeZone struct for VmResizeZone

type VmSnapshotConfig

type VmSnapshotConfig struct {
	DestinationUrl string `json:"destination_url,omitempty"`
}

VmSnapshotConfig struct for VmSnapshotConfig

type VmmPingResponse

type VmmPingResponse struct {
	Version string `json:"version"`
}

VmmPingResponse Virtual Machine Monitor information

type VsockConfig

type VsockConfig struct {
	// Guest Vsock CID
	Cid int64 `json:"cid"`
	// Path to UNIX domain socket, used to proxy vsock connections.
	Socket string `json:"socket"`
	Iommu  bool   `json:"iommu,omitempty"`
	Id     string `json:"id,omitempty"`
}

VsockConfig struct for VsockConfig

Jump to

Keyboard shortcuts

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