sign

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudFrontSigner

type CloudFrontSigner struct {
	SecretsManagerClient *aws.SecretsManagerClient
	CloudFrontKeypairId  string
	PrivateKeySecretId   string
}

func NewCloudFrontSigner

func NewCloudFrontSigner(cloudfrontKeypairId string, privateKeySecretId string) CloudFrontSigner

func (*CloudFrontSigner) GenerateSignedCookies

func (c *CloudFrontSigner) GenerateSignedCookies(uriToSign string, secondsBeforeExpiration int) (map[string]string, error)

type SignController

type SignController struct {
	Signer CloudFrontSigner
}

func NewSignController

func NewSignController(cloudfrontKeypairId string, privateKeySecretId string) SignController

func (*SignController) Sign

func (c *SignController) Sign(ctx *gin.Context)

Jump to

Keyboard shortcuts

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