package
0.1.4
Repository: https://github.com/uber/kraken.git
Documentation: pkg.go.dev

# Functions

Delete sends a DELETE http request.
DisableHTTPFallback disables http fallback when https request fails.
Get sends a GET http request.
GetQueryArg gets an argument from http.Request by name.
Head sends a HEAD http request.
IsAccepted returns true if err is a "status accepted" StatusError.
IsConflict returns true if err is a "status conflict" StatusError.
IsCreated returns true if err is a "created", 201.
IsForbidden returns true if statis code is 403 "forbidden".
IsNetworkError returns true if err is a NetworkError.
IsNotFound returns true if err is a "not found" StatusError.
IsStatus returns true if err is a StatusError of the given status.
NewStatusError returns a new StatusError.
ParseDigest parses a digest from url.
ParseParam parses a parameter from url.
Patch sends a PATCH http request.
PollAccepted wraps GET requests for endpoints which require 202-polling.
Post
Post sends a POST http request.
Put sends a PUT http request.
RetryBackoff adds exponential backoff between retries.
RetryCodes adds more status codes to be retried (in addition to the default 5XX codes).
Send sends an HTTP request.
SendAcceptedCodes specifies accepted codes for http request.
SendBody specifies a body for http request.
SendContext sets the context for the HTTP client.
SendHeaders specifies headers for http request.
SendNoop returns a no-op option.
SendRedirect specifies a redirect policy for http request.
SendRetry will we retry the request on network / 5XX errors.
SendTimeout specifies timeout for http request.
SendTLS sets the transport with TLS config for the HTTP client.
SendTLSTransport sets the transport with TLS config for the HTTP client.
SendTransport sets the transport for the HTTP client.

# Variables

ErrEmptyCommonName is returned when common name is not provided for key generation.

# Structs

ExponentialBackOffConfig maps backoff settings into YAML config format.
NetworkError occurs on any Send error which occurred while trying to send the HTTP request, e.g.
Secret contains secret path configuration.
StatusError occurs if an HTTP response has an unexpected status code.
TLSConfig defines TLS configuration.
X509Pair contains x509 cert configuration.

# Type aliases

RetryOption allows overriding defaults for the SendRetry option.
RoundTripper is an alias of the http.RoundTripper for mocking purposes.
SendOption allows overriding defaults for the Send function.