Documentation
¶
Index ¶
- Constants
- func HTTPMissingQueryParam(param string) error
- func Handle(w http.ResponseWriter, err error)
- type ErrEntityType
- type ErrExists
- type ErrForbidden
- type ErrGroupPolicyNotAttached
- type ErrNotDirectory
- type ErrNotFound
- type ErrPathTraversal
- type ErrUserNotInGroup
- type ErrUserPolicyNotAttached
- type IAMError
- type IAMErrorResponse
- type IAMErrorType
- type S3Error
Constants ¶
View Source
const ( ErrEntityTypeBucket = "bucket" ErrEntityTypeObject = "object" ErrEntityTypeUser = "user" ErrEntityTypeAccessKey = "access_key" ErrEntityTypeGroup = "group" ErrEntityTypeUserGroup = "user_group" ErrEntityTypePolicy = "policy" ErrEntityTypeUserPolicy = "user_policy" ErrEntityTypeGroupPolicy = "group_policy" )
Variables ¶
This section is empty.
Functions ¶
func HTTPMissingQueryParam ¶
func Handle ¶
func Handle(w http.ResponseWriter, err error)
Types ¶
type ErrEntityType ¶
type ErrEntityType string
type ErrExists ¶
type ErrExists struct {
Type ErrEntityType
Resource string
}
type ErrForbidden ¶
type ErrForbidden struct {
Type ErrEntityType
Resource string
}
func (*ErrForbidden) Error ¶
func (e *ErrForbidden) Error() string
type ErrGroupPolicyNotAttached ¶
func (*ErrGroupPolicyNotAttached) Description ¶
func (e *ErrGroupPolicyNotAttached) Description() string
func (*ErrGroupPolicyNotAttached) Error ¶
func (e *ErrGroupPolicyNotAttached) Error() string
type ErrNotDirectory ¶
type ErrNotDirectory struct {
Path string
}
func (*ErrNotDirectory) Error ¶
func (e *ErrNotDirectory) Error() string
type ErrNotFound ¶
type ErrNotFound struct {
Type ErrEntityType
Resource string
}
func (*ErrNotFound) Error ¶
func (e *ErrNotFound) Error() string
type ErrPathTraversal ¶
func (*ErrPathTraversal) Error ¶
func (e *ErrPathTraversal) Error() string
type ErrUserNotInGroup ¶
func (*ErrUserNotInGroup) Description ¶
func (e *ErrUserNotInGroup) Description() string
func (*ErrUserNotInGroup) Error ¶
func (e *ErrUserNotInGroup) Error() string
type ErrUserPolicyNotAttached ¶
func (*ErrUserPolicyNotAttached) Description ¶
func (e *ErrUserPolicyNotAttached) Description() string
func (*ErrUserPolicyNotAttached) Error ¶
func (e *ErrUserPolicyNotAttached) Error() string
type IAMError ¶
type IAMError struct {
Type IAMErrorType
Code string
Message string
RequestId string `xml:"-"`
StatusCode int `xml:"-"`
}
func IAMDeleteConflict ¶
func IAMEntityAlreadyExists ¶
func IAMNoSuchEntity ¶
func IAMNotImplemented ¶
func IAMServiceFailure ¶
func IAMServiceFailure() *IAMError
type IAMErrorResponse ¶
type IAMErrorType ¶
type IAMErrorType string
const ( IAMSenderType IAMErrorType = "Sender" IAMReceiverType IAMErrorType = "Receiver" )
type S3Error ¶
type S3Error struct {
XMLName xml.Name `xml:"Error"`
Code string
Message string
Resource string
BucketName string
Key string
VersionId string
RequestId string
HostId string
StatusCode int `xml:"-"`
}
func S3AccessDenied ¶
func S3AccessDenied() *S3Error
func S3BucketAlreadyExists ¶
func S3BucketAlreadyExists() *S3Error
func S3InternalError ¶
func S3InternalError() *S3Error
func S3NoSuchBucket ¶
func S3NoSuchKey ¶
func S3OperationAborted ¶
func S3SignatureDoesNotMatch ¶
func S3SignatureDoesNotMatch() *S3Error
func (*S3Error) WithHostID ¶
func (*S3Error) WithRequestID ¶
func (*S3Error) WithResource ¶
Click to show internal directories.
Click to hide internal directories.