s3: add One Zone Infrequent Access storage class - fixes #2240

This commit is contained in:
Craig Rachel 2018-04-13 07:36:25 -05:00 committed by Nick Craig-Wood
parent 905e40b3e6
commit 0e6faa2313
2 changed files with 7 additions and 1 deletions

View file

@ -217,6 +217,9 @@ func init() {
}, {
Value: "STANDARD_IA",
Help: "Standard Infrequent Access storage class",
}, {
Value: "ONEZONE_IA",
Help: "One Zone Infrequent Access storage class",
}},
}},
})
@ -237,7 +240,7 @@ const (
var (
// Flags
s3ACL = flags.StringP("s3-acl", "", "", "Canned ACL used when creating buckets and/or storing objects in S3")
s3StorageClass = flags.StringP("s3-storage-class", "", "", "Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA)")
s3StorageClass = flags.StringP("s3-storage-class", "", "", "Storage class to use when uploading S3 objects (STANDARD|REDUCED_REDUNDANCY|STANDARD_IA|ONEZONE_IA)")
s3ChunkSize = fs.SizeSuffix(s3manager.MinUploadPartSize)
)