summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/structs.go b/structs.go
index e5cb9c0..c7010f9 100644
--- a/structs.go
+++ b/structs.go
@@ -1,9 +1,11 @@
package main
import (
+ "net/url"
"time"
"go.wit.com/gui"
+ "go.wit.com/lib/gadgets"
"go.wit.com/lib/protobuf/virtpb"
)
@@ -21,7 +23,7 @@ func (b *virtigoT) Enable() {
// this app's variables
type virtigoT struct {
- cluster *virtpb.Cluster // basic cluster settings
+ cluster *virtpb.OldCluster // basic cluster settings
myGui *gui.Node // the gui toolkit handle
e *virtpb.Events // virt protobuf events
hmap map[*virtpb.Hypervisor]*HyperT // map to the local struct
@@ -37,6 +39,9 @@ type virtigoT struct {
status *gui.Node // the cluster status
lastuptime *gui.Node // the last time uptime was checked by Kuma
admin *adminT // the admin struct
+ clusters *virtpb.Clusters // clusters protobuf
+ cmap map[*virtpb.Cluster]*adminT // map to local GUI objects and the protobuf
+ gwin *gadgets.GenericWindow // main window
}
type adminT struct {
@@ -48,6 +53,7 @@ type adminT struct {
dwin *stdDropletTableWin // the droplet window
hwin *stdHypervisorTableWin // the hypervisor window
ewin *stdEventTableWin // the events window
+ url *url.URL // URL for the cloud
}
// the stuff that is needed for a hypervisor