Skip to content

Commit dd4cb86

Browse files
authored
Read ChecksumAlgorithm and ChecksumType from ListParts (#2032)
These are returned from AWS, so might as well provide them to the user.
1 parent fdef7d2 commit dd4cb86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api-s3-datatypes.go

+6
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@ type ListObjectPartsResult struct {
332332
NextPartNumberMarker int
333333
MaxParts int
334334

335+
// ChecksumAlgorithm will be CRC32, CRC32C, etc.
336+
ChecksumAlgorithm string
337+
338+
// ChecksumType is FULL_OBJECT or COMPOSITE (assume COMPOSITE when unset)
339+
ChecksumType string
340+
335341
// Indicates whether the returned list of parts is truncated.
336342
IsTruncated bool
337343
ObjectParts []ObjectPart `xml:"Part"`

0 commit comments

Comments
 (0)