You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
781 B
32 lines
781 B
package signature
|
|
|
|
// MissingDateHeader date header missing
|
|
type MissingDateHeader struct{}
|
|
|
|
func (e MissingDateHeader) Error() string {
|
|
return "Missing date header"
|
|
}
|
|
|
|
// MissingExpiresQuery expires query string missing
|
|
type MissingExpiresQuery struct{}
|
|
|
|
func (e MissingExpiresQuery) Error() string {
|
|
return "Missing expires query string"
|
|
}
|
|
|
|
// ExpiredPresignedRequest request already expired
|
|
type ExpiredPresignedRequest struct{}
|
|
|
|
func (e ExpiredPresignedRequest) Error() string {
|
|
return "Presigned request already expired"
|
|
}
|
|
|
|
// DoesNotMatch invalid signature
|
|
type DoesNotMatch struct {
|
|
SignatureSent string
|
|
SignatureCalculated string
|
|
}
|
|
|
|
func (e DoesNotMatch) Error() string {
|
|
return "The request signature we calculated does not match the signature you provided"
|
|
}
|
|
|