presigner

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RefreshOnDemand = iota
	RefreshAutomatically
)

Variables

This section is empty.

Functions

func New

func New(params Params) (*presignerT, error)

New will create a presigner client which caches presigned URLs until they expire (~15 minutes).

Types

type Params

type Params struct {
	// Optional parameters.
	AwsConfig        *aws.Config
	Logger           log.DebugLogger
	RefreshPolicy    uint // Default is RefreshOnDemand.
	StsClient        *sts.Client
	StsPresignClient *sts.PresignClient
}

type Presigner

type Presigner interface {
	GetCallerARN() arn.ARN
	PresignGetCallerIdentity(ctx context.Context) (
		*v4.PresignedHTTPRequest, error)
}

Jump to

Keyboard shortcuts

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