aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-02-16 18:19:46 +0100
committerStefan Majewsky <majewsky@gmx.net>2018-02-16 18:19:46 +0100
commitf2bbc3ca2d83b8e0da3ff3652f9d721c6cd91955 (patch)
tree4ae89a436b6054b994e6d8be7bbd30075d16f753 /errors.go
parentee7bf40967cd142ed1172596055dae2cc254df2c (diff)
downloadgo-schwift-f2bbc3ca2d83b8e0da3ff3652f9d721c6cd91955.tar.gz
Object.upload: generate, validate Content-Length and Etag
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/errors.go b/errors.go
index 8e3eef6..0aa7acc 100644
--- a/errors.go
+++ b/errors.go
@@ -27,6 +27,9 @@ import (
)
var (
+ //ErrChecksumMismatch is returned by Object.Upload() when the Etag in the
+ //server response does not match the uploaded data.
+ ErrChecksumMismatch = errors.New("Etag on uploaded object does not match MD5 checksum of uploaded data")
//ErrNoContainerName is returned by Request.Do() if ObjectName is given, but
//ContainerName is empty.
ErrNoContainerName = errors.New("missing container name")