signer

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubResource = "SubResource"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NopSigner

type NopSigner struct{}

func (NopSigner) Presign

func (NopSigner) Presign(ctx context.Context, signingCtx *SigningContext) error

func (NopSigner) Sign

func (NopSigner) Sign(ctx context.Context, signingCtx *SigningContext) error

type Signer

type Signer interface {
	Sign(ctx context.Context, signingCtx *SigningContext) error
	Presign(ctx context.Context, signingCtx *SigningContext) error
}

type SignerV1

type SignerV1 struct {
}

func (SignerV1) Presign

func (SignerV1) Presign(ctx context.Context, signingCtx *SigningContext) error

func (SignerV1) Sign

func (SignerV1) Sign(ctx context.Context, signingCtx *SigningContext) error

type SigningContext

type SigningContext struct {
	//input
	Product string
	Region  string
	Bucket  string
	Key     string
	Request *http.Request

	SubResource []string

	// output
	Credentials   *credentials.Credentials
	Time          time.Time
	SignedHeaders http.Header
	StringToSign  string
}

Jump to

Keyboard shortcuts

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