add streaming support for list_object_versions #323
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds streaming support to
list_object_versionsto match the existing pattern used bylist_objectsandlist_objects_v2.Changes
stream_object_versions!/3inExAws.S3.Lazywith dual-marker pagination (key_marker + version_id_marker) as required by S3 APIlist_object_versionsto supportExAws.stream!()viastream_builderoptionadd_version_results/1helper to combine versions and delete markersTests
Test isolation improved: each test now uses a unique bucket to prevent state pollution. Cleanup uses
list_object_versionswhich works for both versioned and non-versioned buckets (non-versioned objects have version_id of "null").