From dd4cb86c7f866d5ce13d01cc80bd3e0cb0192a54 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Tue, 10 Dec 2024 08:11:51 -0800 Subject: [PATCH] Read ChecksumAlgorithm and ChecksumType from ListParts (#2032) These are returned from AWS, so might as well provide them to the user. --- api-s3-datatypes.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api-s3-datatypes.go b/api-s3-datatypes.go index 9dcaed7c3..5e015fb82 100644 --- a/api-s3-datatypes.go +++ b/api-s3-datatypes.go @@ -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"`