minio-dotnet icon indicating copy to clipboard operation
minio-dotnet copied to clipboard

Add GetPresignedUrl Functionality to Minio .NET Client

Open novama opened this issue 5 months ago • 1 comments

This PR introduces the GetPresignedUrl functionality to the Minio .NET client, aligning it with the existing capabilities of the Minio Python library, as detailed in the official Python client API reference. Key Features:

  • Emulates Python Library Behavior: The GetPresignedUrl method is designed to closely emulate the behavior of the corresponding function in the Python Minio client. This includes generating presigned URLs for bucket objects, allowing temporary access to the objects in the Minio storage.
  • Supported Operations: The functionality supports common HTTP methods (GET, PUT, DELETE, etc.) for presigned URLs, enabling users to share or access objects securely.
  • Parameterization: The method supports various parameters such as expiry times, request parameters, and custom headers, giving users flexibility similar to that in the Python library.
  • Extensive Testing: The implementation has been tested to ensure it matches the expected behavior and performance as seen in the Python library, covering edge cases and typical usage scenarios.

Rationale:

The addition of this functionality enhances the Minio .NET client's feature parity with the Python client, providing .NET developers with the tools necessary to generate presigned URLs directly within their applications, for GET, PUT and DELETE requests.

(Currently, object deletion by presigned url is not supported)

This PR is ready for review. Your feedback and suggestions are welcome!

image

novama avatar Sep 04 '24 00:09 novama