clustvirt/main.go

24 lines
390 B
Go
Raw Normal View History

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)
}