summaryrefslogtreecommitdiff
path: root/digitalocean/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'digitalocean/structs.go')
-rw-r--r--digitalocean/structs.go28
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
+}