1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
wtf/modules/digitalocean/droplet.go
Chris Cummer db997b9a73 WTF-986 Wrap the DigitalOcean droplet in our own droplet
This gives us something to build off while still providing the
underlying functionality of the original droplet instance.

Signed-off-by: Chris Cummer <chriscummer@me.com>
2020-10-13 10:29:30 -07:00

18 lines
324 B
Go

package digitalocean
import "github.com/digitalocean/godo"
// Droplet represents WTF's view of a DigitalOcean droplet
type Droplet struct {
godo.Droplet
}
// NewDroplet creates and returns an instance of Droplet
func NewDroplet(doDroplet godo.Droplet) *Droplet {
droplet := &Droplet{
doDroplet,
}
return droplet
}