|
|
|
@ -8,17 +8,17 @@ import (
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
ErrUnknownPolicyType = serializer.NewError(serializer.CodeInternalSetting, "Unknown policy type", nil)
|
|
|
|
|
ErrFileSizeTooBig = serializer.NewError(serializer.CodeFileTooLarge, "", nil)
|
|
|
|
|
ErrFileExtensionNotAllowed = serializer.NewError(serializer.CodeFileTypeNotAllowed, "", nil)
|
|
|
|
|
ErrInsufficientCapacity = serializer.NewError(serializer.CodeInsufficientCapacity, "", nil)
|
|
|
|
|
ErrIllegalObjectName = serializer.NewError(serializer.CodeIllegalObjectName, "", nil)
|
|
|
|
|
ErrFileSizeTooBig = serializer.NewError(serializer.CodeFileTooLarge, "File is too large", nil)
|
|
|
|
|
ErrFileExtensionNotAllowed = serializer.NewError(serializer.CodeFileTypeNotAllowed, "File type not allowed", nil)
|
|
|
|
|
ErrInsufficientCapacity = serializer.NewError(serializer.CodeInsufficientCapacity, "Insufficient capacity", nil)
|
|
|
|
|
ErrIllegalObjectName = serializer.NewError(serializer.CodeIllegalObjectName, "Invalid object name", nil)
|
|
|
|
|
ErrClientCanceled = errors.New("Client canceled operation")
|
|
|
|
|
ErrRootProtected = serializer.NewError(serializer.CodeRootProtected, "", nil)
|
|
|
|
|
ErrRootProtected = serializer.NewError(serializer.CodeRootProtected, "Root protected", nil)
|
|
|
|
|
ErrInsertFileRecord = serializer.NewError(serializer.CodeDBError, "Failed to create file record", nil)
|
|
|
|
|
ErrFileExisted = serializer.NewError(serializer.CodeObjectExist, "", nil)
|
|
|
|
|
ErrFileUploadSessionExisted = serializer.NewError(serializer.CodeConflictUploadOngoing, "", nil)
|
|
|
|
|
ErrPathNotExist = serializer.NewError(serializer.CodeParentNotExist, "", nil)
|
|
|
|
|
ErrObjectNotExist = serializer.NewError(serializer.CodeParentNotExist, "", nil)
|
|
|
|
|
ErrFileExisted = serializer.NewError(serializer.CodeObjectExist, "Object existed", nil)
|
|
|
|
|
ErrFileUploadSessionExisted = serializer.NewError(serializer.CodeConflictUploadOngoing, "Upload session existed", nil)
|
|
|
|
|
ErrPathNotExist = serializer.NewError(serializer.CodeParentNotExist, "Path not exist", nil)
|
|
|
|
|
ErrObjectNotExist = serializer.NewError(serializer.CodeParentNotExist, "Object not exist", nil)
|
|
|
|
|
ErrIO = serializer.NewError(serializer.CodeIOFailed, "Failed to read file data", nil)
|
|
|
|
|
ErrDBListObjects = serializer.NewError(serializer.CodeDBError, "Failed to list object records", nil)
|
|
|
|
|
ErrDBDeleteObjects = serializer.NewError(serializer.CodeDBError, "Failed to delete object records", nil)
|
|
|
|
|