mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
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>
18 lines
324 B
Go
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
|
|
}
|