awsv4

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

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

Signer implements the AWS authenticated V4 Signature Specification for generating authenticated requests to CodeCommit repositories. The signature is generated using the V4 Signature Specification, see: https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html

func NewSigner

func NewSigner(creds aws.Credentials) *Signer

NewSigner creates a new V4 signer for signing CodeCommit URLs

func (*Signer) Sign

func (s *Signer) Sign(cloneURL string) (string, error)

Sign will sign a CodeCommit clone URL using the AWS authenticated V4 Signature Specification. As CodeCommit is accessed directly through a git client over HTTPS, authentication details must be supplied to CodeCommit using Basic User Autentication.

Cloning with a signed CodeCommit URL removes the need to generate dedicated user credentials and supports authentication directly from an IAM role within services such as AWS Lambda and AWS CodeBuild

Jump to

Keyboard shortcuts

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