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 ¶
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