Port over API bits from #962 (#965)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-02-25 12:39:51 -05:00
1 parent 3ab8bb03de
commit ea23737258
18 files changed
+101 -407

No files matched your search

-14
View File
@@ -1,8 +1,6 @@
// Code generated by "make api"; DO NOT EDIT.
package api
import "bytes"
type Error struct {
Kind string `json:"kind,omitempty"`
Op string `json:"op,omitempty"`
@@ -11,15 +9,3 @@ type Error struct {
response *Response
}
func (n Error) ResponseBody() *bytes.Buffer {
return n.response.Body
}
func (n Error) ResponseMap() map[string]interface{} {
return n.response.Map
}
func (n Error) ResponseStatus() int {
return n.response.HttpResponse().StatusCode
}