summaryrefslogtreecommitdiff
path: root/vendor/github.com/minio/minio-go/v7/api-putobject-snowball.go
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-09-04 10:16:41 +0100
committerLibravatar GitHub <noreply@github.com>2023-09-04 10:16:41 +0100
commitc0bddd272f4e667c4f473f038aa3770b8c43d1cf (patch)
tree96f0e98188e2a312807f34cdd56cbcae370d6b2f /vendor/github.com/minio/minio-go/v7/api-putobject-snowball.go
parent[chore]: Bump golang.org/x/text from 0.12.0 to 0.13.0 (#2177) (diff)
downloadgotosocial-c0bddd272f4e667c4f473f038aa3770b8c43d1cf.tar.xz
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.62 to 7.0.63 (#2180)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/minio/minio-go/v7/api-putobject-snowball.go')
-rw-r--r--vendor/github.com/minio/minio-go/v7/api-putobject-snowball.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/minio/minio-go/v7/api-putobject-snowball.go b/vendor/github.com/minio/minio-go/v7/api-putobject-snowball.go
index 849471e33..983ed6744 100644
--- a/vendor/github.com/minio/minio-go/v7/api-putobject-snowball.go
+++ b/vendor/github.com/minio/minio-go/v7/api-putobject-snowball.go
@@ -48,6 +48,10 @@ type SnowballOptions struct {
// Compression will typically reduce memory and network usage,
// Compression can safely be enabled with MinIO hosts.
Compress bool
+
+ // SkipErrs if enabled will skip any errors while reading the
+ // object content while creating the snowball archive
+ SkipErrs bool
}
// SnowballObject contains information about a single object to be added to the snowball.
@@ -184,10 +188,16 @@ objectLoop:
n, err := io.Copy(t, obj.Content)
if err != nil {
closeObj()
+ if opts.SkipErrs {
+ continue
+ }
return err
}
if n != obj.Size {
closeObj()
+ if opts.SkipErrs {
+ continue
+ }
return io.ErrUnexpectedEOF
}
closeObj()