summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-23 01:31:17 -0500
committerJeff Carr <[email protected]>2024-10-23 01:31:17 -0500
commit3f2cbcb57f818981b1291c0e644b6e3416b7d455 (patch)
tree450662a26b2400d2a76bccbed6966c69ffa58a9e /structs.go
parentca98c0e3c0e40aa2b4215b90d2c04df2ffe0c63a (diff)
things to add xml files
Signed-off-by: Jeff Carr <[email protected]>
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 0cf0176..0b08b25 100644
--- a/structs.go
+++ b/structs.go
@@ -4,6 +4,7 @@ import (
"time"
pb "go.wit.com/lib/protobuf/virtbuf"
+ "libvirt.org/go/libvirtxml"
)
var me virtigoT
@@ -39,9 +40,10 @@ type HyperT struct {
// the stuff that is needed for a hypervisor
type DropletT struct {
- pb *pb.Droplet // the Droplet protobuf
- CurrentState string // what the state of the droplet is ACTUALLY IS
- h *HyperT // the hypervisor it's currently running on
- lastpoll time.Time // the last time the droplet was seen running
- starts int // how many times a start event has been attempted
+ pb *pb.Droplet // the Droplet protobuf
+ xml *libvirtxml.Domain // a xml representation from libvirt
+ h *HyperT // the hypervisor it's currently running on
+ CurrentState string // 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
}