Documentation
¶
Index ¶
- Constants
- func EqualPointerValues(t *require.Assertions, expected, actual interface{})
- func GetResponse(url string) (*http.Response, error)
- func NewBearerTransport(token string) http.RoundTripper
- func NewDebugTransport(inner http.RoundTripper) http.RoundTripper
- func NewDigestTransport(publicKey, privateKey string) http.RoundTripper
- func ParseError(err error, resp *http.Response) error
- func ValidateApiUrl(value string) (*url.URL, error)
- type DebugTransport
Constants ¶
View Source
const (
UserAgent = "serverless-scene-test"
)
Variables ¶
This section is empty.
Functions ¶
func EqualPointerValues ¶
func EqualPointerValues(t *require.Assertions, expected, actual interface{})
EqualPointerValues checks if two pointers point to the same value. see https://github.com/stretchr/testify/issues/1118
func NewBearerTransport ¶
func NewBearerTransport(token string) http.RoundTripper
NewBearerTransport returns a RoundTripper that adds a Bearer token to the Authorization header.
func NewDebugTransport ¶
func NewDebugTransport(inner http.RoundTripper) http.RoundTripper
func NewDigestTransport ¶
func NewDigestTransport(publicKey, privateKey string) http.RoundTripper
Types ¶
type DebugTransport ¶
type DebugTransport struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.