Tags: kelindar/s3
Tags
Refactor the API and add WriteFrom (#2) * feat: update dependencies and improve S3 uploader functionality - Added `golang.org/x/sync v0.15.0` as an indirect dependency. - Refactored tests in `server_test.go` to use the new `Write` method instead of `Put`. - Removed unused multipart upload tests to streamline the test suite. - Updated `Prefix` struct to eliminate unnecessary context handling. - Refactored `Uploader` to improve error handling and context management during uploads. - Introduced `calculatePartSize` function to optimize part size based on total size. - Enhanced `UploadFrom` method to support context cancellation and improved concurrency handling. * chore: reorganize require statements in go.mod for clarity * feat: update dependencies and improve S3 uploader functionality - Added `golang.org/x/sync v0.15.0` as an indirect dependency. - Refactored tests in `server_test.go` to use the new `Write` method instead of `Put`. - Removed unused multipart upload tests to streamline the test suite. - Updated `Prefix` struct to eliminate unnecessary context handling. - Refactored `Uploader` to improve error handling and context management during uploads. - Introduced `calculatePartSize` function to optimize part size based on total size. - Enhanced `UploadFrom` method to support context cancellation and improved concurrency handling. * chore: reorganize require statements in go.mod for clarity * fix: correct bucket initialization and method call in README; add uploader tests * refactor: streamline error handling in uploader tests for clarity * refactor: enhance code readability by improving comments and structuring in Bucket and Prefix implementations * refactor: consolidate and enhance mock S3 server tests; remove redundant tests and improve utility function coverage