Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions backends/s3/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ type Options struct {
// Region defaults to "us-east-1", which also works for Minio
Region string `yaml:"region"`
Bucket string `yaml:"bucket"`

// StorageClass allows setting the S3 Storage Class only when storing objects.
Comment thread
linxside marked this conversation as resolved.
StorageClass string `yaml:"storage_class"`

// CreateBucket tells us to try to create the bucket
CreateBucket bool `yaml:"create_bucket"`

Expand Down Expand Up @@ -363,6 +367,7 @@ func (b *Backend) doStoreReader(ctx context.Context, name string, r io.Reader, s
putObjectOptions := minio.PutObjectOptions{
NumThreads: b.opt.NumMinioThreads,
SendContentMd5: !b.opt.DisableContentMd5,
StorageClass: b.opt.StorageClass,
Comment thread
linxside marked this conversation as resolved.
}

// minio accepts size == -1, meaning the size is unknown.
Expand Down