diff options
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 22 |
1 files changed, 3 insertions, 19 deletions
@@ -22,17 +22,13 @@ func (b *virtigoT) Enable() { 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 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 + killcount int + unstable time.Time // the last time the cluster was incorrect + changed bool unstableTimeout time.Duration - // dirs []string // all the paths too search for a qcow image } // the stuff that is needed for a hypervisor @@ -42,15 +38,3 @@ type HyperT struct { lastpoll time.Time // the last time the hypervisor polled killcount int } - -/* -// the stuff that is needed for a hypervisor -type DropletT struct { - pb *pb.Droplet // the Droplet protobuf - xml *libvirtxml.Domain // a xml representation from libvirt - h *HyperT // the hypervisor it's currently running on - CurrentState pb.DropletState // what the state of the droplet is ACTUALLY IS - lastpoll time.Time // the last time the droplet was seen running - starts int // how many times a start event has been attempted -} -*/ |
