Documentation ¶
Overview ¶
Copyright 2019 Cohesity Inc.
Copyright 2019 Cohesity Inc.
Copyright 2019 Cohesity Inc.
Index ¶
- func ToString(data interface{}, dVal string) string
- type HttpMethod
- type Request
- func Delete(url string, headers map[string]interface{}, body interface{}) *Request
- func DeleteWithAuth(url string, headers map[string]interface{}, body interface{}, username string, ...) *Request
- func Get(url string, headers map[string]interface{}) *Request
- func GetWithAuth(url string, headers map[string]interface{}, username string, password string) *Request
- func NewRequest(method HttpMethod, url string, headers map[string]interface{}, ...) *Request
- func Patch(url string, headers map[string]interface{}, body interface{}) *Request
- func PatchWithAuth(url string, headers map[string]interface{}, body interface{}, username string, ...) *Request
- func Post(url string, headers map[string]interface{}, body interface{}) *Request
- func PostWithAuth(url string, headers map[string]interface{}, body interface{}, username string, ...) *Request
- func Put(url string, headers map[string]interface{}, body interface{}) *Request
- func PutWithAuth(url string, headers map[string]interface{}, body interface{}, username string, ...) *Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpMethod ¶
type HttpMethod int
const ( GET HttpMethod = 1 + iota POST PUT PATCH DELETE )
func (HttpMethod) ToString ¶
func (method HttpMethod) ToString() string
type Request ¶
type Request struct {
// contains filtered or unexported fields
}
func DeleteWithAuth ¶
func GetWithAuth ¶
func NewRequest ¶
func PatchWithAuth ¶
func PostWithAuth ¶
func PutWithAuth ¶
Click to show internal directories.
Click to hide internal directories.