39 lines
511 B
Go
39 lines
511 B
Go
/*
|
|
The DropletBox Struct
|
|
*/
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/digitalocean/godo"
|
|
|
|
"go.wit.com/gui"
|
|
)
|
|
|
|
type DropletBox struct {
|
|
ID int
|
|
image string
|
|
memory int
|
|
disk int
|
|
|
|
ready bool
|
|
hidden bool
|
|
err error
|
|
|
|
poll *godo.Droplet // store what the digital ocean API returned
|
|
|
|
nameN *gui.Node
|
|
sizeSlugN *gui.Node
|
|
statusN *gui.Node
|
|
imageN *gui.Node
|
|
|
|
destroy *gui.Node
|
|
connect *gui.Node
|
|
poweron *gui.Node
|
|
poweroff *gui.Node
|
|
edit *gui.Node
|
|
|
|
ipv4 *gui.Node
|
|
ipv6 *gui.Node
|
|
}
|