diff options
| author | Jeff Carr <[email protected]> | 2024-10-26 08:54:28 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-26 08:54:28 -0500 |
| commit | b4518e8b82df2109b75072c679122e4826b341ef (patch) | |
| tree | a501d4f3c0717a9a5acb51fbcec2b0cc232cda86 /structs.go | |
| parent | 9020957ee73741a3f120ff7fd9f9afcb517e02ed (diff) | |
compiles and lists hypervisors
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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 } +*/ |
