Skip to content

Commit

Permalink
Read ChecksumAlgorithm and ChecksumType from ListParts
Browse files Browse the repository at this point in the history
These are returned from AWS, so might as well provide them to the user.
  • Loading branch information
klauspost committed Dec 10, 2024
1 parent fdef7d2 commit 6c97746
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api-s3-datatypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,12 @@ type ListObjectPartsResult struct {
NextPartNumberMarker int
MaxParts int

// ChecksumAlgorithm will be CRC32, CRC32C, etc.
ChecksumAlgorithm string

// ChecksumType is FULL_OBJECT or COMPOSITE (assume COMPOSITE when unset)
ChecksumType string

// Indicates whether the returned list of parts is truncated.
IsTruncated bool
ObjectParts []ObjectPart `xml:"Part"`
Expand Down

0 comments on commit 6c97746

Please sign in to comment.