ec

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccountDisabled     = &Error{StatusCode: 401, Code: "AccountDisabled", Message: "The user account is disabled"}
	ArchiveNotAbortable = &Error{StatusCode: 409, Code: "ArchiveNotAbortable", Message: "The archive is not abortable"}
	ArchiveNotPending   = &Error{StatusCode: 409, Code: "ArchiveNotPending", Message: "The archive is not pending"}
	BucketAlreadyExists = &Error{StatusCode: 409, Code: "BucketAlreadyExists", Message: "The requested bucket name is not available"}
	BucketNotEmpty      = &Error{StatusCode: 409, Code: "BucketNotEmpty", Message: "The bucket is not empty"}
	InvalidArgument     = &Error{StatusCode: 400, Code: "InvalidArgument", Message: "Invalid argument"}
	InvalidCredentials  = &Error{StatusCode: 401, Code: "InvalidCredentials", Message: "Invalid Credentials"}
	NoSuchArchive       = &Error{StatusCode: 404, Code: "NoSuchArchive", Message: "The specified archive does not exist"}
	NoSuchApiKey        = &Error{StatusCode: 404, Code: "NoSuchApiKey", Message: "The specified api key does not exist"}
	NoSuchBucket        = &Error{StatusCode: 404, Code: "NoSuchBucket", Message: "The specified bucket does not exist"}
	NoSuchKey           = &Error{StatusCode: 404, Code: "NoSuchKey", Message: "The specified key does not exist"}
	NoSuchUser          = &Error{StatusCode: 404, Code: "NoSuchUser", Message: "The specified user does not exist"}
	ObjectAlreadyExists = &Error{StatusCode: 409, Code: "ObjectAlreadyExists", Message: "The requested object name is not available"}
	Unauthorized        = &Error{StatusCode: 401, Code: "Unauthorized", Message: "Unauthorized"}
	UserAlreadyExists   = &Error{StatusCode: 409, Code: "UserAlreadyExists", Message: "The requested user name is not available"}
)

Functions

This section is empty.

Types

type Error

type Error struct {
	StatusCode int    `json:"-"`
	Code       string `json:"code"`
	Message    string `json:"message"`
}

func Internal

func Internal(e error) *Error

func Wrap

func Wrap(e error) *Error

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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