Documentation ¶
Index ¶
- Variables
- func AuthenticateHTTP(httpClientCtx *HTTPClientCtx, reAuth bool) error
- func LoadTokens() (*authToken, error)
- type AuthType
- type BodyString
- type HTTPClientCtx
- func (ctx HTTPClientCtx) Delete(authType AuthType, url string, reqBody, resp interface{}) error
- func (ctx HTTPClientCtx) Get(authType AuthType, url string, body interface{}, target interface{}) error
- func (ctx HTTPClientCtx) GetBlobStream(url string) (io.ReadCloser, int64, error)
- func (ctx HTTPClientCtx) GetStream(authType AuthType, url string) (io.ReadCloser, error)
- func (ctx HTTPClientCtx) Post(authType AuthType, url string, reqBody, resp interface{}) error
- func (ctx HTTPClientCtx) Put(authType AuthType, url string, reqBody, resp interface{}) error
- func (ctx HTTPClientCtx) PutStream(authType AuthType, url string, reqBody io.Reader) error
- func (ctx HTTPClientCtx) Request(authType AuthType, verb, url string, body io.Reader) (*http.Response, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AuthenticateHTTP ¶
func AuthenticateHTTP(httpClientCtx *HTTPClientCtx, reAuth bool) error
func LoadTokens ¶
func LoadTokens() (*authToken, error)
Types ¶
type BodyString ¶
type BodyString struct {
Content string
}
type HTTPClientCtx ¶
func CreateHTTPClientCtx ¶
func CreateHTTPClientCtx(token *authToken, ctx context.Context) (*HTTPClientCtx, error)
func (HTTPClientCtx) Delete ¶
func (ctx HTTPClientCtx) Delete(authType AuthType, url string, reqBody, resp interface{}) error
func (HTTPClientCtx) Get ¶
func (ctx HTTPClientCtx) Get(authType AuthType, url string, body interface{}, target interface{}) error
func (HTTPClientCtx) GetBlobStream ¶
func (ctx HTTPClientCtx) GetBlobStream(url string) (io.ReadCloser, int64, error)
func (HTTPClientCtx) GetStream ¶
func (ctx HTTPClientCtx) GetStream(authType AuthType, url string) (io.ReadCloser, error)
func (HTTPClientCtx) Post ¶
func (ctx HTTPClientCtx) Post(authType AuthType, url string, reqBody, resp interface{}) error
func (HTTPClientCtx) Put ¶
func (ctx HTTPClientCtx) Put(authType AuthType, url string, reqBody, resp interface{}) error
Click to show internal directories.
Click to hide internal directories.