mirror of
https://github.com/Grace-Solutions/PSMinIO.git
synced 2026-08-27 12:26:50 +00:00
Upgrade to MinIO 5.0.0 and include built module
- Updated MinIO SDK from 3.1.13 to 5.0.0 - Fixed all compilation errors and warnings for MinIO 5.0.0 compatibility - Updated API calls to use new Args-based patterns (PutObjectArgs, GetObjectArgs, etc.) - Fixed type compatibility issues (DateTime, ulong conversions) - Removed deprecated APIs (WithCancellation, ProgressReport) - Updated System.Text.Json to 9.0.0 to resolve security vulnerabilities - Added Module directory to repository with built PSMinIO.dll - Module is now ready for distribution and testing - All builds pass with 0 errors and 0 warnings
This commit is contained in:
@@ -41,7 +41,7 @@ namespace PSMinIO.Cmdlets
|
||||
protected override void ProcessRecord()
|
||||
{
|
||||
ValidateConnection();
|
||||
ValidateBucketName(BucketName);
|
||||
ValidateBucketNameForCreation(BucketName);
|
||||
|
||||
// Use region from parameter or configuration
|
||||
var region = Region ?? Configuration.Region;
|
||||
@@ -118,10 +118,10 @@ namespace PSMinIO.Cmdlets
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Validates the bucket name according to MinIO/S3 naming conventions
|
||||
/// Validates the bucket name according to MinIO/S3 naming conventions for bucket creation
|
||||
/// </summary>
|
||||
/// <param name="bucketName">Bucket name to validate</param>
|
||||
protected override void ValidateBucketName(string bucketName, string parameterName = "BucketName")
|
||||
private void ValidateBucketNameForCreation(string bucketName, string parameterName = "BucketName")
|
||||
{
|
||||
base.ValidateBucketName(bucketName, parameterName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user