diff options
| author | Jeff Carr <[email protected]> | 2024-10-26 20:53:52 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-26 20:53:52 -0500 |
| commit | cec509ae7f3156887a807a50a3e8d6982a236435 (patch) | |
| tree | 8a8196fbc82c0221cc9a1fb52a17348c83a62e8c /structs.go | |
| parent | 3c1efcba0e6d5757aea38b0c2067fdbb26be8105 (diff) | |
doesn't deal with libvirtxml directly anymore
Signed-off-by: Jeff Carr <[email protected]>
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 -} -*/ |
