diff options
| author | Jeff Carr <[email protected]> | 2023-12-30 22:41:58 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-30 22:41:58 -0600 |
| commit | be03e85c2def1501b6b22572d8a1d140663194ab (patch) | |
| tree | cf3db3b9a61c6579039413289f1c7ebd51ebc227 /digitalocean/structs.go | |
| parent | eb007d63d92280b95a6a79c6c83341870312ccd6 (diff) | |
shows the droplets and if they are on or off
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'digitalocean/structs.go')
| -rw-r--r-- | digitalocean/structs.go | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/digitalocean/structs.go b/digitalocean/structs.go index 3ae4f3e..6f12994 100644 --- a/digitalocean/structs.go +++ b/digitalocean/structs.go @@ -17,12 +17,14 @@ type DigitalOcean struct { err error token string // You're Digital Ocean API key - droplets []godo.Droplet + dpolled []godo.Droplet + + dropMap map[int]*Droplet parent *gui.Node // should be the root of the 'gui' package binary tree window *gui.Node // our window for displaying digital ocean droplets - group *gui.Node // our window for displaying digital ocean droplets - grid *gui.Node // our window for displaying digital ocean droplets + group *gui.Node + grid *gui.Node dGrid *gui.Node // the grid for the droplets @@ -46,6 +48,12 @@ type Droplet struct { poll *godo.Droplet // store what the digital ocean API returned name *gui.Node + status *gui.Node + destroy *gui.Node + connect *gui.Node + poweron *gui.Node + poweroff *gui.Node + edit *gui.Node // a box and grid of the IPv4 addresses box4 *gui.Node |
