Matthew Stobbs
00758af30b
- Next is to get the list and setting the information using go routines for each VM
24 lines
390 B
Go
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)
|
|
}
|