summaryrefslogtreecommitdiff
path: root/hypervisior.go
diff options
context:
space:
mode:
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)
- }
-}
-*/