mirror of
https://github.com/henrybear327/Proton-API-Bridge.git
synced 2026-04-18 13:56:53 -04:00
Add config option - ReplaceExistingDraft Refactor and add integration tests Update README and add notes for MIME parsing and progress bug Improve returned errors
19 lines
1.3 KiB
Go
19 lines
1.3 KiB
Go
package proton_api_bridge
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrMainSharePreconditionsFailed = errors.New("the main share assumption has failed")
|
|
ErrDataFolderNameIsEmpty = errors.New("please supply a DataFolderName to enabling file downloading")
|
|
ErrLinkTypeMustToBeFolderType = errors.New("the link type must be of folder type")
|
|
ErrLinkTypeMustToBeFileType = errors.New("the link type must be of file type")
|
|
ErrFolderIsNotEmpty = errors.New("folder can't be deleted because it is not empty")
|
|
ErrInternalErrorOnFileUpload = errors.New("either link or createFileResp must be not nil")
|
|
ErrMissingInputUploadAndCollectBlockData = errors.New("missing either session key or key ring")
|
|
ErrLinkMustNotBeNil = errors.New("missing input proton link")
|
|
ErrLinkMustBeActive = errors.New("can not operate on link state other than active")
|
|
ErrDownloadedBlockHashVerificationFailed = errors.New("the hash of the downloaded block doesn't match the original hash")
|
|
ErrWrongGetRevisionUsage = errors.New("func GetRevision is used wrongly")
|
|
ErrDraftExists = errors.New("a draft exist - usually this means a file is being uploaded at another client, or, there was a failed upload attempt")
|
|
)
|