type Request …
type Response …
type Status …
func NewRequest(client *http.Client, base *url.URL, verb string, version string, authstring, userAgent string) *Request { … }
func checkExists(mustExist string, before string) error { … }
func checkSet(name string, s *string, newval string) error { … }
func (r *Request) Resource(resource string) *Request { … }
func (r *Request) Instance(instance string) *Request { … }
func (r *Request) UsePath(path string) *Request { … }
func (r *Request) QueryOption(key string, value string) *Request { … }
func (r *Request) QueryOptionLabel(key string, labels map[string]string) *Request { … }
func (r *Request) SetHeader(key, value string) *Request { … }
func (r *Request) Timeout(d time.Duration) *Request { … }
func (r *Request) Body(v interface{ … }
func (r *Request) URL() *url.URL { … }
func headerVal(key string, resp *http.Response) (int, bool) { … }
func parseHTTPStatus(resp *http.Response, body []byte) error { … }
func (r *Request) Do() *Response { … }
func (r Response) Body() ([]byte, error) { … }
func (r Response) StatusCode() int { … }
func (r Response) Unmarshal(v interface{ … }
func (r Response) Error() error { … }
func (r Response) FormatError() error { … }
func digest(method string, path string) string { … }