Documentation
¶
Index ¶
- func Exhaust(resp *http.Response)
- func GetJSON(client *http.Client, headers http.Header, path *url.URL, data interface{}, ...) error
- func PostJSON(client *http.Client, headers http.Header, path *url.URL, data interface{}) (http.Header, error)
- func Query(client *http.Client, method string, headers http.Header, path *url.URL, ...) error
- func Update(client *http.Client, method string, headers http.Header, path *url.URL, ...) (http.Header, error)
- type DecodeError
- type Keystone
- type NetError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJSON ¶
func GetJSON(client *http.Client, headers http.Header, path *url.URL, data interface{}, allowUnknownFields bool) error
GetJSON is a convenience wrapper for Query(client, http.MethodGet, ...) TODO: Add a variant with pagination support
func PostJSON ¶
func PostJSON(client *http.Client, headers http.Header, path *url.URL, data interface{}) (http.Header, error)
PostJSON is a convenience wrapper for Update(client, http.MethodPost, ...)
Types ¶
type DecodeError ¶
type DecodeError struct { Data json.RawMessage Err error }
DecodeError returned when failed to decode json data
type Keystone ¶
type Keystone struct { LoginURL *url.URL // /v3/auth/tokens URL RenewURL *url.URL // /token renewal URL (TBD) Username, Service string }
Keystone manages Requests to the Identity Manager
Click to show internal directories.
Click to hide internal directories.