aws

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 52 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAWSSignerHandler

func NewAWSSignerHandler(ctx context.Context, config SignerHandlerConfig) (http.Handler, error)

NewAWSSignerHandler creates a new request handler for signing and forwarding requests to AWS API.

Types

type SignerHandlerConfig

type SignerHandlerConfig struct {
	// Log is a logger for the handler.
	Log logrus.FieldLogger
	// RoundTripper is an http.RoundTripper instance used for requests.
	RoundTripper http.RoundTripper
	// SigningService is used to sign requests before forwarding them.
	*awsutils.SigningService
	// Clock is used to override time in tests.
	Clock clockwork.Clock
}

SignerHandlerConfig is the awsSignerHandler configuration.

func (*SignerHandlerConfig) CheckAndSetDefaults

func (cfg *SignerHandlerConfig) CheckAndSetDefaults() error

CheckAndSetDefaults validates the AwsSignerHandlerConfig.

Jump to

Keyboard shortcuts

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