v2

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

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 SigV2 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 SigV2 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

HandleFinalize will take the provided input and sign the request using the SigV2 authentication scheme

func (*SignHTTPRequestMiddleware) ID added in v1.14.0

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 {
	Request *smithyhttp.Request
	// 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 SigV2 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 v2 requests

type SignerOptions added in v1.14.0

type SignerOptions struct {
	Logger     logging.Logger
	LogSigning bool
}

SignerOptions is the SigV2 Signer options

type SigningError added in v1.14.0

type SigningError struct {
	Err error
}

SigningError indicates an error condition occurred while performing SigV2 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL