Versions in this module Expand all Collapse all v1 v1.28.0 Nov 6, 2025 Changes in this version + func FormatUptime(uptimeSec uint64) string + type Client struct + func NewClient(uri string, isoPoolName, templatePoolName string) (*Client, error) + func (c *Client) AttachDiskToVM(uuidStr string, volumePath string, targetDev string) error + func (c *Client) AttachNetworkInterfaceToVM(uuidStr string, networkName string, model string) error + func (c *Client) CheckGuestAgentStatus(uuidStr string) (bool, error) + func (c *Client) Close() error + func (c *Client) CreateNWFilter(req core.CreateNWFilterRequest) error + func (c *Client) CreateNetwork(name string, bridgeName string) error + func (c *Client) CreateStoragePool(cfg core.PoolConfig) error + func (c *Client) CreateVM(cfg core.VMCreationConfig) (core.VM_Detailed, error) + func (c *Client) CreateVMSnapshot(uuidStr string, cfg core.CreateSnapshotRequest) (core.Snapshot, error) + func (c *Client) CreateVolume(poolName string, volConfig core.VolumeConfig) error + func (c *Client) DeleteImage(imageId string) error + func (c *Client) DeleteNWFilter(name string) error + func (c *Client) DeleteNetwork(name string) error + func (c *Client) DeleteVM(uuidStr string, deleteDisks bool) error + func (c *Client) DeleteVMSnapshot(uuidStr string, snapshotName string) error + func (c *Client) DeleteVolume(poolName string, volumeName string) error + func (c *Client) ForceStopVM(name string) error + func (c *Client) GetActivity() []core.ActivityEvent + func (c *Client) GetDomainByName(name string) (*libvirt.Domain, error) + func (c *Client) GetGuestAgentStatus(vmName string) (string, error) + func (c *Client) GetHostResources() (core.HostResources, error) + func (c *Client) GetHostStatus() (core.HostStatus, error) + func (c *Client) GetISOs() ([]core.Image, error) + func (c *Client) GetImages() ([]core.Image, error) + func (c *Client) GetNWFilter(name string) (core.NWFilter, error) + func (c *Client) GetNetworks() ([]core.Network, error) + func (c *Client) GetStoragePools() ([]core.StoragePool, error) + func (c *Client) GetSystemInterfaces() ([]core.SystemInterface, error) + func (c *Client) GetTemplates() ([]core.Image, error) + func (c *Client) GetVMDetails(uuidStr string) (core.VM_Detailed, error) + func (c *Client) GetVMPerformance(uuidStr string) (core.PerformanceSample, error) + func (c *Client) GetVMSerialConsolePath(uuidStr string) (string, error) + func (c *Client) GetVMSnapshots(uuidStr string) ([]core.Snapshot, error) + func (c *Client) GetVMSummaries() ([]core.VM_Summary, error) + func (c *Client) GetVMVNCInfo(uuidStr string) (core.VNCInfo, error) + func (c *Client) GetVolumes(poolName string) ([]core.Volume, error) + func (c *Client) ImportImageFromPath(sourcePath string) (core.Image, error) + func (c *Client) InstallGuestAgent(uuidStr string) error + func (c *Client) ListNWFilters() ([]core.NWFilter, error) + func (c *Client) NewStream(flags libvirt.StreamFlags) (*libvirt.Stream, error) + func (c *Client) PerformVMAction(uuidStr string, action string) error + func (c *Client) RestartVM(name string, force bool) error + func (c *Client) RevertToVMSnapshot(uuidStr string, snapshotName string) error + func (c *Client) StartVM(name string) error + func (c *Client) StopVM(name string) error + func (c *Client) UpdateNWFilter(name string, req core.CreateNWFilterRequest) error + func (c *Client) UpdateNetwork(name string, action string) error + func (c *Client) UpdateVolume(poolName string, volumeName string, config core.VolumeConfig) error + type ClientInterface interface + AttachDiskToVM func(uuidStr string, volumePath string, targetDev string) error + AttachNetworkInterfaceToVM func(uuidStr string, networkName string, model string) error + CheckGuestAgentStatus func(uuidStr string) (bool, error) + Close func() error + CreateNWFilter func(req core.CreateNWFilterRequest) error + CreateNetwork func(name string, bridgeName string) error + CreateStoragePool func(cfg core.PoolConfig) error + CreateVM func(cfg core.VMCreationConfig) (core.VM_Detailed, error) + CreateVMSnapshot func(uuidStr string, cfg core.CreateSnapshotRequest) (core.Snapshot, error) + CreateVolume func(poolName string, volConfig core.VolumeConfig) error + DeleteImage func(imageId string) error + DeleteNWFilter func(name string) error + DeleteNetwork func(name string) error + DeleteVM func(uuidStr string, deleteDisks bool) error + DeleteVMSnapshot func(uuidStr string, snapshotName string) error + DeleteVolume func(poolName string, volumeName string) error + GetActivity func() []core.ActivityEvent + GetDomainByName func(name string) (*libvirt.Domain, error) + GetGuestAgentStatus func(vmName string) (string, error) + GetHostResources func() (core.HostResources, error) + GetHostStatus func() (core.HostStatus, error) + GetISOs func() ([]core.Image, error) + GetImages func() ([]core.Image, error) + GetNWFilter func(name string) (core.NWFilter, error) + GetNetworks func() ([]core.Network, error) + GetStoragePools func() ([]core.StoragePool, error) + GetSystemInterfaces func() ([]core.SystemInterface, error) + GetTemplates func() ([]core.Image, error) + GetVMDetails func(uuidStr string) (core.VM_Detailed, error) + GetVMPerformance func(uuidStr string) (core.PerformanceSample, error) + GetVMSerialConsolePath func(uuidStr string) (string, error) + GetVMSnapshots func(uuidStr string) ([]core.Snapshot, error) + GetVMSummaries func() ([]core.VM_Summary, error) + GetVMVNCInfo func(uuidStr string) (core.VNCInfo, error) + GetVolumes func(poolName string) ([]core.Volume, error) + ImportImageFromPath func(path string) (core.Image, error) + InstallGuestAgent func(uuidStr string) error + ListNWFilters func() ([]core.NWFilter, error) + NewStream func(flags libvirt.StreamFlags) (*libvirt.Stream, error) + PerformVMAction func(uuidStr string, action string) error + RevertToVMSnapshot func(uuidStr string, snapshotName string) error + UpdateNWFilter func(name string, req core.CreateNWFilterRequest) error + UpdateNetwork func(name string, bridgeName string) error + UpdateVolume func(poolName string, volumeName string, config core.VolumeConfig) error + type DomainXML struct + Devices struct{ ... } + Memory struct{ ... } + Name string + OS struct{ ... } + Type string + VCPU struct{ ... } + XMLName xml.Name + type DomainXMLForPTY struct + Devices struct{ ... } + type DomainXMLForVNC struct + Devices struct{ ... } + type GuestAgentInfo struct + Available bool + Hostname string + IPAddresses []string + LastSeen time.Time + OSName string + OSVersion string + type InterfaceStats struct + RxBytes uint64 + RxPackets uint64 + TxBytes uint64 + TxPackets uint64