diff options
| author | Jeff Carr <[email protected]> | 2023-12-30 09:49:30 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-12-30 09:49:30 -0600 |
| commit | 7532fb5ff5d0178bb9b1cf0a1cd6ba7c30bb7c2b (patch) | |
| tree | 9cd3f1fbbbe9393ccec871258f5e6e8522b6cc04 /digitalocean/structs.go | |
| parent | ec5cbbe203596327d42ac626dcc9c55c604b9139 (diff) | |
create a basic digitalocean gui object
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'digitalocean/structs.go')
| -rw-r--r-- | digitalocean/structs.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/digitalocean/structs.go b/digitalocean/structs.go new file mode 100644 index 0000000..2c1fc55 --- /dev/null +++ b/digitalocean/structs.go @@ -0,0 +1,28 @@ +/* + The Digital Ocean Struct +*/ + +package digitalocean + +import ( + "go.wit.com/gui" + "go.wit.com/gui/gadgets" +) + +type DigitalOcean struct { + ready bool + hidden bool + + token string // You're Digital Ocean API key + + 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 + + // Primary Directives + status *gadgets.OneLiner + summary *gadgets.OneLiner + statusIPv4 *gadgets.OneLiner + statusIPv6 *gadgets.OneLiner +} |
