summaryrefslogtreecommitdiff
path: root/hypervisior.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-31 06:50:17 -0500
committerJeff Carr <[email protected]>2024-10-31 06:50:17 -0500
commita345a813d887b02d9c6eaea9d4645cf5c30f0573 (patch)
treeb10b29c7d9d42673a126b62892f8b56df7aac87f /hypervisior.go
parentcc092bd8955ce7589fb2d92c091a5da3f8f714e5 (diff)
rename to virtigolib
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'hypervisior.go')
-rw-r--r--hypervisior.go32
1 files changed, 0 insertions, 32 deletions
diff --git a/hypervisior.go b/hypervisior.go
index 2085e98..11f99cf 100644
--- a/hypervisior.go
+++ b/hypervisior.go
@@ -76,35 +76,3 @@ func pollHypervisor(hv *hypervisor.Hypervisor) string {
}
return out
}
-
-/*
-func displayBlockDevices(domain *qemu.Domain) {
- // var []blks string
- blockDevices, err := domain.BlockDevices()
- if err != nil {
- log.Fatalf("Error getting blockDevices: %v\n", blockDevices)
- }
- fmt.Printf("\n[ BlockDevices ]\n")
- fmt.Printf("========================================================================\n")
- fmt.Printf("%20s %8s %30s\n", "Device", "Driver", "File")
- fmt.Printf("========================================================================\n")
- for _, blockDevice := range blockDevices {
- fmt.Printf("%20s %8s %30s\n",
- blockDevice.Device, blockDevice.Inserted.Driver, blockDevice.Inserted.File)
- }
-}
-
-func displayPCIDevices(domain *qemu.Domain) {
- pciDevices, err := domain.PCIDevices()
- if err != nil {
- log.Fatalf("Error getting PCIDevices: %v\n", pciDevices)
- }
- fmt.Printf("\n[ PCIDevices ]\n")
- fmt.Printf("======================================\n")
- fmt.Printf("%10s %20s\n", "[ID]", "[Description]")
- fmt.Printf("======================================\n")
- for _, pciDevice := range pciDevices {
- fmt.Printf("[%10s] [%20s]\n", pciDevice.QdevID, pciDevice.ClassInfo.Desc)
- }
-}
-*/