Documentation ¶
Index ¶
Constants ¶
View Source
const ErrorCodeInternalError = "InternalError"
ErrorCodeInternalError means there was an internal error.
View Source
const ErrorCodeInvalidAccessKeyID = "InvalidAccessKeyId"
ErrorCodeInvalidAccessKeyID means there was an invalid access key provided.
View Source
const ErrorCodeNoSuchBucket = "NoSuchBucket"
ErrorCodeNoSuchBucket means the specified bucket does not exist.
View Source
const ErrorInvalidRequest = "InvalidRequest"
ErrorInvalidRequest means there was an invalid request.
Variables ¶
This section is empty.
Functions ¶
func AuthorizationHeaderAccessKey ¶
AuthorizationHeaderAccessKey attempts to extract the (unverified) access key from the Authorization header.
func BucketPolicy ¶
func BucketPolicy(bucketName string, roleName string) (json.RawMessage, error)
BucketPolicy generates an S3 bucket policy for role.
Types ¶
type Error ¶
type Error struct { Code string Message string Resource string RequestID string `xml:"RequestId"` BucketName string `xml:"BucketName,omitempty"` HostID string `xml:"HostId"` }
Error S3 error response.
func (*Error) Response ¶
func (r *Error) Response(w http.ResponseWriter)
Response writes error as HTTP response.
type ListAllMyBucketsResult ¶
ListAllMyBucketsResult S3 list my buckets.
func (*ListAllMyBucketsResult) Response ¶
func (r *ListAllMyBucketsResult) Response(w http.ResponseWriter)
Response writes error as HTTP response.
Click to show internal directories.
Click to hide internal directories.