diff options
| author | Jeff Carr <[email protected]> | 2023-12-31 02:50:20 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-31 02:50:20 -0600 |
| commit | d2f0691744ff677a3d044cad72c1c35d32f85d92 (patch) | |
| tree | 17d7c6e9b5dd16bc76b8c9ad62bcd0c2045ad1cb /digitalocean/structs.go | |
| parent | 44730e1b91d0aa9d412032aebe2fc0c8367ddf13 (diff) | |
create takes a name. delete() droplet works
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'digitalocean/structs.go')
| -rw-r--r-- | digitalocean/structs.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/digitalocean/structs.go b/digitalocean/structs.go index cfd400d..bfb607f 100644 --- a/digitalocean/structs.go +++ b/digitalocean/structs.go @@ -18,8 +18,10 @@ type DigitalOcean struct { token string // You're Digital Ocean API key dpolled []godo.Droplet + sshKeys []godo.Key dropMap map[int]*Droplet + create *windowCreate parent *gui.Node // should be the root of the 'gui' package binary tree window *gui.Node // our window for displaying digital ocean droplets @@ -35,6 +37,20 @@ type DigitalOcean struct { statusIPv6 *gadgets.OneLiner } +type windowCreate struct { + ready bool + hidden bool + err error + + 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 + grid *gui.Node + + tag *gadgets.OneLiner + name *gadgets.BasicEntry +} + type ipButton struct { ip *gui.Node c *gui.Node |
