Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPSigner ¶ added in v1.14.0
type HTTPSigner interface {
SignHTTP(ctx context.Context, credentials aws.Credentials, r *smithyhttp.Request, optFns ...func(*SignerOptions)) error
}
HTTPSigner is an interface to a SigV3 signer that can sign HTTP requests
type SignHTTPRequestMiddleware ¶ added in v1.14.0
type SignHTTPRequestMiddleware struct {
// contains filtered or unexported fields
}
SignHTTPRequestMiddleware is a `FinalizeMiddleware` implementation for SigV3 HTTP Signing
func NewSignHTTPRequestMiddleware ¶ added in v1.14.0
func NewSignHTTPRequestMiddleware(options SignHTTPRequestMiddlewareOptions) *SignHTTPRequestMiddleware
NewSignHTTPRequestMiddleware constructs a SignHTTPRequestMiddleware using the given Signer for signing requests
func (*SignHTTPRequestMiddleware) HandleFinalize ¶ added in v1.14.0
func (s *SignHTTPRequestMiddleware) HandleFinalize( ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) ( out middleware.FinalizeOutput, metadata middleware.Metadata, err error, )
HandleFinalize will take the provided input and sign the request using the SigV3 authentication scheme
func (*SignHTTPRequestMiddleware) ID ¶ added in v1.14.0
func (s *SignHTTPRequestMiddleware) ID() string
ID is the SignHTTPRequestMiddleware identifier
type SignHTTPRequestMiddlewareOptions ¶ added in v1.14.0
type SignHTTPRequestMiddlewareOptions struct { CredentialsProvider aws.CredentialsProvider Signer HTTPSigner LogSigning bool }
SignHTTPRequestMiddlewareOptions is the configuration options for the SignHTTPRequestMiddleware middleware.
type Signer ¶ added in v1.14.0
type Signer struct {
// contains filtered or unexported fields
}
Signer applies NIFCLOUD v2 signing to given request
func NewSigner ¶ added in v1.14.0
func NewSigner(optFns ...func(signer *SignerOptions)) *Signer
NewSigner returns a new SigV3 Signer
func (Signer) SignHTTP ¶ added in v1.14.0
func (s Signer) SignHTTP( ctx context.Context, credentials aws.Credentials, r *smithyhttp.Request, optFns ...func(options *SignerOptions)) error
SignHTTP signs NIFCLOUD v3 requests
type SignerOptions ¶ added in v1.14.0
SignerOptions is the SigV3 Signer options
type SigningError ¶ added in v1.14.0
type SigningError struct {
Err error
}
SigningError indicates an error condition occurred while performing SigV3 signing
func (*SigningError) Error ¶ added in v1.14.0
func (e *SigningError) Error() string
func (*SigningError) Unwrap ¶ added in v1.14.0
func (e *SigningError) Unwrap() error
Unwrap returns the underlying error cause