Versions in this module Expand all Collapse all v0 v0.4.1 Sep 6, 2017 Changes in this version + var Client = http.DefaultClient + var UserAgent = "Akamai-Open-Edgegrid-golang/" + libraryVersion + " golang/" + strings.TrimPrefix(runtime.Version(), "go") + func BodyJSON(r *http.Response, data interface{}) error + func Do(config edgegrid.Config, req *http.Request) (*http.Response, error) + func IsClientError(r *http.Response) bool + func IsError(r *http.Response) bool + func IsInformational(r *http.Response) bool + func IsRedirection(r *http.Response) bool + func IsServerError(r *http.Response) bool + func IsSuccess(r *http.Response) bool + func NewJSONRequest(config edgegrid.Config, method, path string, body interface{}) (*http.Request, error) + func NewRequest(config edgegrid.Config, method, path string, body io.Reader) (*http.Request, error) + type APIError struct + ClientIP string + Detail string + Instance string + Method string + RawBody string + RequestID string + RequestTime string + Response *http.Response + ServerIP string + Status int + Title string + Type string + func NewAPIError(response *http.Response) APIError + func NewAPIErrorFromBody(response *http.Response, body []byte) APIError + func (error APIError) Error() string + type JSONBody map[string]interface + type Resource struct + Complete chan bool + func (resource *Resource) GetJSON() ([]byte, error) + func (resource *Resource) Init() + func (resource *Resource) PostUnmarshalJSON() error