clustvirt/main.go
Matthew Stobbs f96a911722 host will now load VM data
- All host node info is done using goroutines to speed up the process as much as possible
- The vast majority of data is stored at this point
  - Need to work out refreshes, using either polling or events
2024-03-12 22:17:42 -06:00

26 lines
453 B
Go

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