Documentation ¶
Index ¶
- Constants
- func GetAddrPort(urlStr string) (string, int, error)
- func GetClient(insecure bool) *http.Client
- func GetDefaultClient() *http.Client
- func JSONRequest(client *http.Client, ctx context.Context, method string, urlStr string, ...) (http.Header, jsonutils.JSONObject, error)
- func ParseJSONResponse(resp *http.Response, err error, debug bool) (http.Header, jsonutils.JSONObject, error)
- func Request(client *http.Client, ctx context.Context, method string, urlStr string, ...) (*http.Response, error)
- type JSONClientError
Constants ¶
View Source
const (
USER_AGENT = "yunioncloud-go/201708"
)
Variables ¶
This section is empty.
Functions ¶
func GetDefaultClient ¶
func JSONRequest ¶
func ParseJSONResponse ¶
Types ¶
type JSONClientError ¶
func (*JSONClientError) Error ¶
func (e *JSONClientError) Error() string
Click to show internal directories.
Click to hide internal directories.