func readItems(vm models.VirtualMachine) ([]models.MeasurementItem, error) { /* # virsh domblklist xy Target Source ------------------------------------------------ vda /var/lib/nova/instances/9e703375-7ca7-4135-9534-b7aaeb5a14e5/disk */ list, err := util.VirshXList("domblklist", vm.Name()) if err != nil { return nil, err } return list, nil }
func readItems(vm models.VirtualMachine) ([]models.MeasurementItem, error) { /* # virsh domiflist xy Interface Type Source Model MAC ------------------------------------------------------- tap07e88f58-5d bridge qbr07e88f58-5d virtio fa:16:3e:63:1c:a9 */ list, err := util.VirshXList("domiflist", vm.Name()) if err != nil { return nil, err } return list, nil }