Versions in this module Expand all Collapse all v1 v1.0.0 Oct 9, 2018 Changes in this version + func CheckResponse(r *http.Response) error + type Client struct + BaseURL *url.URL + Credentials *Credentials + UserAgent string + func NewClient(credentials *Credentials) (*Client, error) + func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) error + func (c *Client) NewRequest(ctx context.Context, method, urlStr string, body interface{}) (*http.Request, error) + func (c *Client) NewUploadRequest(ctx context.Context, method, urlStr string, body []byte) (*http.Request, error) + func (c *Client) OnRequestCompleted(rc RequestCompletionCallback) + type Credentials struct + Endpoint string + Insecure bool + Password string + Port string + URL string + Username string + type ErrorResponse struct + APIVersion string + Code int64 + Kind string + MessageList []MessageResource + State string + func (r *ErrorResponse) Error() string + type MessageResource struct + Details map[string]interface{} + Message string + Reason string + type RequestCompletionCallback func(*http.Request, *http.Response, interface{})