mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 23:22:08 +01:00
vendor: update github.com/t3rm1n4l/go-mega to add new error codes
This commit is contained in:
parent
c680bb3254
commit
fd370fcad2
2
go.mod
2
go.mod
@ -49,7 +49,7 @@ require (
|
||||
github.com/spf13/cobra v0.0.3
|
||||
github.com/spf13/pflag v1.0.3
|
||||
github.com/stretchr/testify v1.2.2
|
||||
github.com/t3rm1n4l/go-mega v0.0.0-20190204171941-1b8ac3503be8
|
||||
github.com/t3rm1n4l/go-mega v0.0.0-20190205172012-55a226cf41da
|
||||
github.com/xanzy/ssh-agent v0.2.0
|
||||
github.com/yunify/qingstor-sdk-go v2.2.15+incompatible
|
||||
golang.org/x/crypto v0.0.0-20190131182504-b8fe1690c613
|
||||
|
2
go.sum
2
go.sum
@ -116,6 +116,8 @@ github.com/t3rm1n4l/go-mega v0.0.0-20180817194457-854bf31d998b h1:Yt/fB2INfWb29V
|
||||
github.com/t3rm1n4l/go-mega v0.0.0-20180817194457-854bf31d998b/go.mod h1:ObGZcW2yPzFXEsaTZVMgLKhdUSHMYM3aEDE/u7YnfU8=
|
||||
github.com/t3rm1n4l/go-mega v0.0.0-20190204171941-1b8ac3503be8 h1:pRD8qAFGq7u9wK/lTg64wkdpCZh4lsTvRoEzQWWLMGE=
|
||||
github.com/t3rm1n4l/go-mega v0.0.0-20190204171941-1b8ac3503be8/go.mod h1:XWL4vDyd3JKmJx+hZWUVgCNmmhZ2dTBcaNDcxH465s0=
|
||||
github.com/t3rm1n4l/go-mega v0.0.0-20190205172012-55a226cf41da h1:hWHAUYEtxnj8tb2pHj5WPGEIE8leSi/3cMND8fUjsBE=
|
||||
github.com/t3rm1n4l/go-mega v0.0.0-20190205172012-55a226cf41da/go.mod h1:XWL4vDyd3JKmJx+hZWUVgCNmmhZ2dTBcaNDcxH465s0=
|
||||
github.com/xanzy/ssh-agent v0.2.0 h1:Adglfbi5p9Z0BmK2oKU9nTG+zKfniSfnaMYB+ULd+Ro=
|
||||
github.com/xanzy/ssh-agent v0.2.0/go.mod h1:0NyE30eGUDliuLEHJgYte/zncp2zdTStcOnWhgSqHD8=
|
||||
github.com/yunify/qingstor-sdk-go v2.2.15+incompatible h1:/Z0q3/eSMoPYAuRmhjWtuGSmVVciFC6hfm3yfCKuvz0=
|
||||
|
45
vendor/github.com/t3rm1n4l/go-mega/errors.go
generated
vendored
45
vendor/github.com/t3rm1n4l/go-mega/errors.go
generated
vendored
@ -20,18 +20,25 @@ var (
|
||||
EEXPIRED = errors.New("The upload target URL you are trying to access has expired. Please request a fresh one")
|
||||
|
||||
// Filesystem/Account errors
|
||||
ENOENT = errors.New("Object (typically, node or user) not found")
|
||||
ECIRCULAR = errors.New("Circular linkage attempted")
|
||||
EACCESS = errors.New("Access violation")
|
||||
EEXIST = errors.New("Trying to create an object that already exists")
|
||||
EINCOMPLETE = errors.New("Trying to access an incomplete resource")
|
||||
EKEY = errors.New("A decryption operation failed")
|
||||
ESID = errors.New("Invalid or expired user session, please relogin")
|
||||
EBLOCKED = errors.New("User blocked")
|
||||
EOVERQUOTA = errors.New("Request over quota")
|
||||
ETEMPUNAVAIL = errors.New("Resource temporarily not available, please try again later")
|
||||
EMACMISMATCH = errors.New("MAC verification failed")
|
||||
EBADATTR = errors.New("Bad node attribute")
|
||||
ENOENT = errors.New("Object (typically, node or user) not found")
|
||||
ECIRCULAR = errors.New("Circular linkage attempted")
|
||||
EACCESS = errors.New("Access violation")
|
||||
EEXIST = errors.New("Trying to create an object that already exists")
|
||||
EINCOMPLETE = errors.New("Trying to access an incomplete resource")
|
||||
EKEY = errors.New("A decryption operation failed")
|
||||
ESID = errors.New("Invalid or expired user session, please relogin")
|
||||
EBLOCKED = errors.New("User blocked")
|
||||
EOVERQUOTA = errors.New("Request over quota")
|
||||
ETEMPUNAVAIL = errors.New("Resource temporarily not available, please try again later")
|
||||
EMACMISMATCH = errors.New("MAC verification failed")
|
||||
EBADATTR = errors.New("Bad node attribute")
|
||||
ETOOMANYCONNECTIONS = errors.New("Too many connections on this resource.")
|
||||
EWRITE = errors.New("File could not be written to (or failed post-write integrity check).")
|
||||
EREAD = errors.New("File could not be read from (or changed unexpectedly during reading).")
|
||||
EAPPKEY = errors.New("Invalid or missing application key.")
|
||||
ESSL = errors.New("SSL verification failed")
|
||||
EGOINGOVERQUOTA = errors.New("Not enough quota")
|
||||
EMFAREQUIRED = errors.New("Multi-factor authentication required")
|
||||
|
||||
// Config errors
|
||||
EWORKER_LIMIT_EXCEEDED = errors.New("Maximum worker limit exceeded")
|
||||
@ -79,6 +86,20 @@ func parseError(errno ErrorMsg) error {
|
||||
return EOVERQUOTA
|
||||
case errno == -18:
|
||||
return ETEMPUNAVAIL
|
||||
case errno == -19:
|
||||
return ETOOMANYCONNECTIONS
|
||||
case errno == -20:
|
||||
return EWRITE
|
||||
case errno == -21:
|
||||
return EREAD
|
||||
case errno == -22:
|
||||
return EAPPKEY
|
||||
case errno == -23:
|
||||
return ESSL
|
||||
case errno == -24:
|
||||
return EGOINGOVERQUOTA
|
||||
case errno == -26:
|
||||
return EMFAREQUIRED
|
||||
}
|
||||
|
||||
return fmt.Errorf("Unknown mega error %d", errno)
|
||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -139,7 +139,7 @@ github.com/spf13/pflag
|
||||
# github.com/stretchr/testify v1.2.2
|
||||
github.com/stretchr/testify/assert
|
||||
github.com/stretchr/testify/require
|
||||
# github.com/t3rm1n4l/go-mega v0.0.0-20190204171941-1b8ac3503be8
|
||||
# github.com/t3rm1n4l/go-mega v0.0.0-20190205172012-55a226cf41da
|
||||
github.com/t3rm1n4l/go-mega
|
||||
# github.com/xanzy/ssh-agent v0.2.0
|
||||
github.com/xanzy/ssh-agent
|
||||
|
Loading…
Reference in New Issue
Block a user