Documentation ¶
Index ¶
- Constants
- func New(cfg *Config, authSettings awsds.AuthSettings, next http.RoundTripper, ...) (http.RoundTripper, error)
- func SigV4Middleware(verboseLogging bool) httpclient.Middleware
- func SigV4MiddlewareWithAuthSettings(verboseLogging bool, authSettings awsds.AuthSettings) httpclient.Middleware
- type Config
- type Opts
- type RoundTripperFunc
Constants ¶
const SigV4MiddlewareName = "sigv4"
SigV4MiddlewareName the middleware name used by SigV4Middleware.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg *Config, authSettings awsds.AuthSettings, next http.RoundTripper, opts ...Opts) (http.RoundTripper, error)
New instantiates a new signing middleware with an optional succeeding middleware. The http.DefaultTransport will be used if nil AuthSettings can be gotten from the datasource instance's context with awsds.ReadAuthSettingsFromContext
func SigV4Middleware ¶ added in v0.25.0
func SigV4Middleware(verboseLogging bool) httpclient.Middleware
SigV4Middleware applies AWS Signature Version 4 request signing for the outgoing request. Deprecated: Use SigV4MiddlewareWithAuthSettings instead
func SigV4MiddlewareWithAuthSettings ¶ added in v0.28.0
func SigV4MiddlewareWithAuthSettings(verboseLogging bool, authSettings awsds.AuthSettings) httpclient.Middleware
SigV4MiddlewareWithAuthSettings applies AWS Signature Version 4 request signing for the outgoing request. AuthSettings can be gotten from the datasource instance's context with awsds.ReadAuthSettingsFromContext
Types ¶
type RoundTripperFunc ¶
The RoundTripperFunc type is an adapter to allow the use of ordinary functions as RoundTrippers. If f is a function with the appropriate signature, RoundTripperFunc(f) is a RoundTripper that calls f.