Versions in this module Expand all Collapse all v0 v0.9.3 Sep 25, 2021 v0.9.1 Sep 20, 2021 v0.8.44 Sep 18, 2021 Changes in this version + var DISK = &Disk + var DomainAll = libvirt.CONNECT_LIST_DOMAINS_ACTIVE | libvirt.CONNECT_LIST_DOMAINS_INACTIVE + var DomainCpuConfig = libvirt.DOMAIN_VCPU_CONFIG + var DomainCpuMaximum = libvirt.DOMAIN_VCPU_MAXIMUM | libvirt.DOMAIN_VCPU_CONFIG + var DomainDestroyGraceful = libvirt.DOMAIN_DESTROY_GRACEFUL + var DomainDeviceModifyConfig = libvirt.DOMAIN_DEVICE_MODIFY_CONFIG + var DomainDeviceModifyPersistent = libvirt.DOMAIN_DEVICE_MODIFY_LIVE | libvirt.DOMAIN_DEVICE_MODIFY_CONFIG + var DomainMemConfig = libvirt.DOMAIN_MEM_CONFIG + var DomainMemMaximum = libvirt.DOMAIN_MEM_MAXIMUM | libvirt.DOMAIN_MEM_CONFIG + var DomainShutdownAcpi = libvirt.DOMAIN_SHUTDOWN_ACPI_POWER_BTN + var INTERFACE = &Interface + var PciDiskBus = "0x01" + var PciDomain = "0x00" + var PciFunc = "0x00" + var PciInterfaceBus = "0x02" + func AddHyperListener(listen HyperListener) + func DomainState2Str(state libvirt.DomainState) string + type ACPIXML struct + Value string + XMLName xml.Name + type APICXML struct + Value string + XMLName xml.Name + type AddressXML struct + Bus string + Controller string + Domain string + Function string + Slot string + Target string + Type string + Unit string + XMLName xml.Name + type CPUXML struct + Check string + Match string + Mode string + XMLName xml.Name + type ChannelDeviceXML struct + Source ChannelSourceXML + Target ChannelTargetXML + Type string + XMLName xml.Name + type ChannelSourceXML struct + Channel string + XMLName xml.Name + type ChannelTargetXML struct + Name string + Type string + XMLName xml.Name + type ControllerXML struct + Address *AddressXML + Index string + Model string + Type string + XMLName xml.Name + type CurMemXML struct + Type string + Value string + XMLName xml.Name + type DevicesXML struct + Channels []ChannelDeviceXML + Controllers []ControllerXML + Disks []DiskXML + Graphics []GraphicsXML + Inputs []InputDeviceXML + Interfaces []InterfaceXML + Sound SoundDeviceXML + Video VideoDeviceXML + XMLName xml.Name + type Disk struct + func (d *Disk) Slot2Dev(bus string, slot uint8) string + func (d *Disk) Slot2Name(slot uint8) string + type DiskDriverXML struct + Name string + Type string + XMLName xml.Name + type DiskSourceXML struct + Device string + File string + XMLName xml.Name + type DiskTargetXML struct + Bus string + Dev string + XMLName xml.Name + type DiskXML struct + Address *AddressXML + Device string + Driver DiskDriverXML + Source DiskSourceXML + Target DiskTargetXML + Type string + XMLName xml.Name + type Domain struct + func ListDomains() ([]Domain, error) + func LookupDomainByUUIDName(uuid string) (*Domain, error) + func LookupDomainByUUIDString(uuid string) (*Domain, error) + func NewDomainFromVir(dom *libvirt.Domain, hyper *HyperVisor) *Domain + func (d *Domain) GetMetadataTitle(title bool) (string, error) + func (d *Domain) GetXMLDesc(secure bool) (string, error) + func (d *Domain) SetCpu(max, mode string) error + func (d *Domain) SetMemory(size, unit string) error + func (d *Domain) SetMetadataTitle(value string, title bool) error + type DomainXML struct + CPU CPUXML + CurMem CurMemXML + Devices DevicesXML + Features FeaturesXML + Id string + Memory MemXML + Name string + OS OSXML + Type string + UUID string + VCPU VCPUXML + XMLName xml.Name + func NewDomainXMLFromDom(dom *Domain, secure bool) *DomainXML + func (domain *DomainXML) GraphicsAddr(format string) (string, string) + type FeaturesXML struct + Acpi *ACPIXML + Apic *APICXML + Pae *PaeXML + XMLName xml.Name + type GraphicsXML struct + AutoPort string + Listen string + Password string + Port string + Type string + XMLName xml.Name + type HyperListener struct + Closed func(Conn *libvirt.Connect) error + Opened func(Conn *libvirt.Connect) error + type HyperVisor struct + Address string + Conn *libvirt.Connect + ConnedTime int64 + CpuSts *libvirt.NodeCPUStats + DomUtil map[string]uint64 + Done chan bool + Host string + IdleUtil uint64 + Listener []HyperListener + Lock sync.RWMutex + Path string + Schema string + Ticker *time.Ticker + Url string + func GetHyper() (*HyperVisor, error) + func SetHyper(name string) (*HyperVisor, error) + func (h *HyperVisor) AddListener(listen HyperListener) + func (h *HyperVisor) Close() + func (h *HyperVisor) DomainDefineXML(xmlConfig string) (*Domain, error) + func (h *HyperVisor) FigureCPU() (err error) + func (h *HyperVisor) GetCPU() (uint, string, uint64) + func (h *HyperVisor) GetMem() (t uint64, f uint64, c uint64) + func (h *HyperVisor) GetRootfs() string + func (h *HyperVisor) ListAllDomains() ([]Domain, error) + func (h *HyperVisor) LookupDomainByName(id string) (*Domain, error) + func (h *HyperVisor) LookupDomainByUUIDName(id string) (*Domain, error) + func (h *HyperVisor) LookupDomainByUUIDString(id string) (*Domain, error) + func (h *HyperVisor) LoopForever() + func (h *HyperVisor) Open() error + func (h *HyperVisor) SetUrl(name string) + func (h *HyperVisor) UpTime() int64 + type InputDeviceXML struct + Bus string + Type string + XMLName xml.Name + type Interface struct + func (int *Interface) Slot2Dev(slot uint8) string + type InterfaceDriverXML struct + Name string + Queues string + XMLName xml.Name + type InterfaceMacXML struct + Address string + XMLName xml.Name + type InterfaceModelXML struct + Type string + XMLName xml.Name + type InterfaceSourceXML struct + Address *AddressXML + Bridge string + Network string + XMLName xml.Name + type InterfaceTargetXML struct + Bus string + Dev string + XMLName xml.Name + type InterfaceVirPortXML struct + Type string + XMLName xml.Name + type InterfaceXML struct + Address *AddressXML + Driver *InterfaceDriverXML + Mac InterfaceMacXML + Model InterfaceModelXML + Source InterfaceSourceXML + Target InterfaceTargetXML + Type string + VirtualPort *InterfaceVirPortXML + XMLName xml.Name + type MemXML struct + Type string + Value string + XMLName xml.Name + type OSBootMenuXML struct + Enable string + XMLName xml.Name + type OSBootXML struct + Dev string + XMLName xml.Name + type OSTypeXML struct + Arch string + Machine string + Value string + XMLName xml.Name + type OSXML struct + Boot []OSBootXML + BootMenu OSBootMenuXML + Type OSTypeXML + XMLName xml.Name + type PaeXML struct + Value string + XMLName xml.Name + type SnapshotXML struct + CreateAt int64 + IsCurrent bool + Name string + State string + XMLName xml.Name + func NewSnapshotXMLFromDom(ds *libvirt.DomainSnapshot) *SnapshotXML + type SoundDeviceXML struct + Model string + XMLName xml.Name + type VCPUXML struct + Placement string + Value string + XMLName xml.Name + type VideoDeviceXML struct + Model VideoModelXML + XMLName xml.Name + type VideoModelXML struct + Type string + XMLName xml.Name