| 8 | ) |
| 9 | |
| 10 | type HTTPClientAPI interface { |
| 11 | // NewRequest returns a new HTTP request. |
| 12 | // If the payload is not nil it will be encoded as JSON. |
| 13 | NewRequest(ctx context.Context, method, uri string, payload interface{}, options ...management.RequestOption) (*http.Request, error) |
| 14 | |
| 15 | // Do triggers an HTTP request and returns an HTTP response, |
| 16 | // handling any context cancellations or timeouts. |
| 17 | Do(req *http.Request) (*http.Response, error) |
| 18 | |
| 19 | // Request combines NewRequest and Do, encoding the payload as JSON and |
| 20 | // returning an error for any non-2xx response. |
| 21 | Request(ctx context.Context, method, uri string, payload interface{}, options ...management.RequestOption) error |
| 22 | |
| 23 | // URI builds a fully-qualified Management API URL from the given path segments. |
| 24 | URI(path ...string) string |
| 25 | } |
no outgoing calls
no test coverage detected