-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for listing R2 buckets #1063
Conversation
changelog detected ✅ |
Codecov Report
@@ Coverage Diff @@
## master #1063 +/- ##
==========================================
+ Coverage 49.94% 50.09% +0.14%
==========================================
Files 115 121 +6
Lines 10991 11737 +746
==========================================
+ Hits 5490 5880 +390
- Misses 4338 4571 +233
- Partials 1163 1286 +123
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@jacobbednarz This seems to have landed https://api.cloudflare.com/#r2-bucket-list-buckets. It does support pagination with cursors |
thanks @Cyb3r-Jak3 . bumped the method signature too to get the customisations into it. |
This functionality has been released in v0.55.0. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Description
Added the ability to list R2 buckets. A recent change (#1028) added support for creating and deleting R2 buckets but was missing the ability to list R2 buckets. This change adds support for listing R2 buckets.
Has your change been tested?
Enhanced r2_bucket_test.go with an additional test (TestR2_ListBuckets) to list R2 buckets. Also verified this against an active cloudflare account.
Types of changes
What sort of change does your code introduce/modify?
Checklist: