Documentation
¶
Index ¶
- func APIErrorHelper(req *http.Request, status int) error
- func ConfigureCertVerification(skipVerify bool)
- func CreateRequest(method string, uri string, payload []byte, token string) (*http.Request, error)
- func Request(method string, uri string, payload []byte, token string) ([]byte, error)
- func StatusValid(status int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIErrorHelper ¶
APIErrorHelper formats an error message
func ConfigureCertVerification ¶
func ConfigureCertVerification(skipVerify bool)
ConfigureCertVerification allows tls verification to be disabled
func CreateRequest ¶
CreateRequest returns an http request with headers
func StatusValid ¶
StatusValid takes a status code, returns true if status is 200 or 201
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.