Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplified implementation of "requireBucketExists"
This implementation depends on multiple (reasonable) assumptions and insights gained from the source code of MinIO: - "maxKeys" is implemented as page size: The iterator returned by "MinioClient.listObjects" automatically loads another batch of 0 <= count <= maxKeys results if the number of calls to the iterator exceeds the number of previously loaded results. The extension function "MinioClient.listObjectsLimit" limits the number of objects returned in total. - The iterator returned by "MinioClient.listObjects" will only return up to one error result. If there is an error result, it will always be returned as the next and only remaining result. - AWS as well as other S3 providers return the results of "listObjects" in a sorted fashion. This implementation breaks if a provider doesn't abide to this contract.
- Loading branch information