Documentation ¶
Index ¶
- func CreateDroplet(client *godo.Client, req *godo.DropletCreateRequest, timeout time.Duration) (int, error)
- func CreateOrGetSSHKey(PublicKey string, client *godo.Client) (int, error)
- func DeleteDroplets(droplets []string, client *godo.Client) ([]string, error)
- func ListDroplets(tag string, client *godo.Client) ([]godo.Droplet, error)
- func NewClient(token string) (*godo.Client, error)
- type TokenSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDroplet ¶
func CreateOrGetSSHKey ¶
CreateOrGetSSHKey creates ssh key in DigitalOcean account, if the key already exists in DO, retrieves its ID and returns it
Types ¶
type TokenSource ¶
type TokenSource struct {
AccessToken string
}
Click to show internal directories.
Click to hide internal directories.