Documentation ¶
Index ¶
- func CreateBearerHTTPClient(ctx context.Context, token string) *http.Client
- func Do(client *http.Client, req *http.Request, v interface{}) (*http.Response, error)
- func GetAccessToken(envName string) (string, error)
- func IsValidResult(resp *http.Response) error
- func PathEscape(s string) string
- func PrepareAssets(repository string, assets []config.Asset) ([]*string, error)
- func ShouldRetry(resp *http.Response) bool
- type AddHeaderTransport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBearerHTTPClient ¶
CreateBearerHTTPClient with given token
func GetAccessToken ¶
GetAccessToken lookup for the providers accesstoken
func IsValidResult ¶
IsValidResult validates response code
func PrepareAssets ¶
PrepareAssets prepare all files before uploading
Types ¶
type AddHeaderTransport ¶
type AddHeaderTransport struct { T http.RoundTripper // contains filtered or unexported fields }
AddHeaderTransport struct
func NewAddHeaderTransport ¶
func NewAddHeaderTransport(T http.RoundTripper, key, value string) *AddHeaderTransport
NewAddHeaderTransport to add default header
Click to show internal directories.
Click to hide internal directories.