Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForActive ¶
WaitForActive waits for a droplet to become active
Example ¶
// build client pat := "mytoken" t := &oauth.Transport{ Token: &oauth.Token{AccessToken: pat}, } client := godo.NewClient(t.Client()) // create your droplet and retrieve the create action uri uri := "https://api.digitalocean.com/v2/actions/xxxxxxxx" // block until until the action is complete err := WaitForActive(client, uri) if err != nil { panic(err) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.