clustvirt/main.go
Matthew Stobbs 00758af30b Now pulling VM data from named VMs
- Next is to get the list and setting the information using go routines for each VM
2024-03-11 19:39:17 -06:00

24 lines
390 B
Go

package main
import (
"log"
"git.staur.ca/stobbsm/clustvirt/lib/host"
)
func main() {
log.Println("Starting clustvirt, the libvirt cluster manager")
venus, err := host.ConnectHost("venus.staur.ca")
if err != nil {
log.Fatal(err)
}
defer venus.Close()
lm, err := venus.GetGuestByName("logan-minecraft")
if err != nil {
log.Fatal(err)
}
defer lm.Close()
log.Println(lm)
}