summaryrefslogtreecommitdiff
path: root/digitalocean/structs.go
blob: 2c1fc551e8e11c62c0dc4239e677ab0d12b3a862 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
}