signer

package
v3.2.11 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AwsDefaultVars = map[string]interface{}{
	"region":  "us-east-2",
	"service": "sts",
}
View Source
var AwsInternalOnlyVars = map[string]interface{}{
	"aws-id":     struct{}{},
	"aws-secret": struct{}{},
}
View Source
var AwsSkipList = map[string]interface{}{
	"region": struct{}{},
}

Functions

func GetCtxWithArgs

func GetCtxWithArgs(maps ...map[string]interface{}) context.Context

GetCtxWithArgs creates and returns context with signature args

Types

type AWSOptions

type AWSOptions struct {
	AwsID          string
	AwsSecretToken string
	Service        string
	Region         string
}

AWSOptions

func (*AWSOptions) Validate

func (a *AWSOptions) Validate() error

Validate Signature Arguments

type AWSSigner

type AWSSigner struct {
	// contains filtered or unexported fields
}

AWS v4 signer

func NewAwsSigner

func NewAwsSigner(opts *AWSOptions) (*AWSSigner, error)

NewAwsSigner

func NewAwsSignerFromConfig

func NewAwsSignerFromConfig(opts *AWSOptions) (*AWSSigner, error)

NewAwsSignerFromConfig

func (*AWSSigner) SignHTTP

func (a *AWSSigner) SignHTTP(ctx context.Context, request *http.Request) error

SignHTTP

type Signer

type Signer interface {
	SignHTTP(ctx context.Context, request *http.Request) error
}

func NewSigner

func NewSigner(args SignerArgs) (signer Signer, err error)

type SignerArg

type SignerArg string

An Argument that can be passed to Signer

type SignerArgs

type SignerArgs interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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