diff options
| author | Jeff Carr <[email protected]> | 2025-03-24 21:53:31 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-24 21:53:31 -0500 |
| commit | 1fd6b1d36d099a3301b62293d004e26bea83a070 (patch) | |
| tree | 22d5a8d029d5080c0c16032fcae176e0cbd5892f /structs.go | |
| parent | a7e639cdb0d34fee66b4a85def25be4fea7e635e (diff) | |
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |
