summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/structs.go b/structs.go
index 07803fa..a19c2ba 100644
--- a/structs.go
+++ b/structs.go
@@ -4,7 +4,6 @@ import (
"time"
pb "go.wit.com/lib/protobuf/virtbuf"
- "libvirt.org/go/libvirtxml"
)
var me virtigoT
@@ -24,10 +23,11 @@ type virtigoT struct {
cluster *pb.Cluster // basic cluster settings
delay time.Duration // how often to poll the hypervisors
// events *pb.Events // cluster events
- dmap map[*pb.Droplet]*DropletT // map to the local struct
- names []string
- hypers []*HyperT
- droplets []*DropletT
+ // dmap map[*pb.Droplet]*DropletT // map to the local struct
+ hmap map[*pb.Hypervisor]*HyperT // map to the local struct
+ names []string
+ hypers []*HyperT
+ // droplets []*DropletT
killcount int
unstable time.Time // the last time the cluster was incorrect
changed bool
@@ -42,6 +42,7 @@ type HyperT struct {
killcount int
}
+/*
// the stuff that is needed for a hypervisor
type DropletT struct {
pb *pb.Droplet // the Droplet protobuf
@@ -51,3 +52,4 @@ type DropletT struct {
lastpoll time.Time // the last time the droplet was seen running
starts int // how many times a start event has been attempted
}
+*/