Commit Graph

9 Commits

Author SHA1 Message Date
Paul Hinze 108ccf0007 builtin: Refactor resource.Retry to clarify return
Change the `RetryFunc` from a plain `error` return type to a
specialized `RetryError` which must decide whether it is
retryable or not.

Add `RetryableError` / `NonRetryableError` factory functions that
callers are meant to use to build up these errors.

This makes it eminently clear whether or not a given error is
retryable from inside the client code.

Goal here is to _not_ change any behavior, simply reflect the
existing behavior with the new, clearer, API.
2016-03-09 17:37:56 -06:00
Trevor Pounds 79742fc367 Enable `go vet -composites` check and fix warnings. 2016-02-17 11:59:50 -08:00
Paul Hinze b537e5e966 provider/heroku: retry drain create until log channel is assigned
Should fix the build error encountered here:

https://travis-ci.org/hashicorp/terraform/builds/104548513
2016-01-25 09:59:41 -06:00
Mitchell Hashimoto 64bc356f97 providers/heroku: tests passing, compiling 2014-09-16 17:21:01 -07:00
Clint Shryock f6d5ed6c31 Swap bgentry/heroku-go for cyberdelia/heroku-go 2014-08-27 09:50:37 -05:00
Mitchell Hashimoto 9a0c0ea985 providers/heroku: domain/drain have dep on app 2014-08-19 10:16:47 -07:00
Mitchell Hashimoto 43405c270b providers/heroku: heroku_drain 2014-08-19 09:18:45 -07:00
Mitchell Hashimoto 513596cc37 providers/heroku: Heroku app is mostly converted 2014-08-18 09:32:40 -07:00
Ben Marini 6dd629a334 Add heroku drain resource 2014-07-29 15:45:12 -07:00