domcapabilities

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	// Return the capabilities status of the host we are mounted on.
	Get(virt *libvirt.Libvirt) (DomainCapabilities, error)
}

Client that returns the domain capabilities of the host we are mounted on.

func NewClient

func NewClient() Client

Create a new domain capabilities client.

func NewClientEmulator

func NewClientEmulator() Client

Create a new emulated domain capabilities client.

type DomainCapabilities

type DomainCapabilities struct {
	Domain   string                     `xml:"domain"`
	Arch     string                     `xml:"arch"`
	OS       DomainCapabilitiesOS       `xml:"os"`
	CPU      DomainCapabilitiesCPU      `xml:"cpu"`
	Devices  DomainCapabilitiesDevices  `xml:"devices"`
	Features DomainCapabilitiesFeatures `xml:"features"`
}

DomainCapabilities as returned from the libvirt domain capabilities api.

The format is the same as returned when executing `virsh domcapabilities`. See: https://www.libvirt.org/manpages/virsh.html#domcapabilities For another reference see: https://gitlab.com/libvirt/libvirt-go-xml-module/-/blob/v1.11010.0/domain_capabilities.go

type DomainCapabilitiesCPU

type DomainCapabilitiesCPU struct {
	Modes []DomainCapabilitiesCPUMode `xml:"mode"`
}

DomainCapabilitiesCPU represents the CPU capabilities section.

type DomainCapabilitiesCPUMode

type DomainCapabilitiesCPUMode struct {
	Name      string                   `xml:"name,attr"`
	Supported string                   `xml:"supported,attr"`
	Enums     []DomainCapabilitiesEnum `xml:"enum"`
}

DomainCapabilitiesCPUMode represents a CPU mode with its capabilities.

type DomainCapabilitiesDevice

type DomainCapabilitiesDevice struct {
	XMLName   xml.Name                 `xml:""`
	Supported string                   `xml:"supported,attr"`
	Enums     []DomainCapabilitiesEnum `xml:"enum"`
}

DomainCapabilitiesDevice represents the devices capabilities section.

type DomainCapabilitiesDevices

type DomainCapabilitiesDevices struct {
	Devices []DomainCapabilitiesDevice `xml:",any"`
}

DomainCapabilitiesDevices represents the devices capabilities section.

type DomainCapabilitiesEnum

type DomainCapabilitiesEnum struct {
	Name   string   `xml:"name,attr"`
	Values []string `xml:"value"`
}

DomainCapabilitiesEnum represents an enumeration of possible values.

type DomainCapabilitiesFeature

type DomainCapabilitiesFeature struct {
	XMLName   xml.Name `xml:""`
	Supported string   `xml:"supported,attr"`
}

DomainCapabilitiesFeature represents a feature with supported attribute.

type DomainCapabilitiesFeatures

type DomainCapabilitiesFeatures struct {
	Features []DomainCapabilitiesFeature `xml:",any"`
}

DomainCapabilitiesFeatures represents the features capabilities section.

type DomainCapabilitiesOS

type DomainCapabilitiesOS struct {
	Supported string                     `xml:"supported,attr"`
	Loader    DomainCapabilitiesOSLoader `xml:"loader"`
}

DomainCapabilitiesOS represents the OS capabilities section.

type DomainCapabilitiesOSLoader

type DomainCapabilitiesOSLoader struct {
	Supported string                   `xml:"supported,attr"`
	Enums     []DomainCapabilitiesEnum `xml:"enum"`
}

DomainCapabilitiesOSLoader represents the loader capabilities.

Jump to

Keyboard shortcuts

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