MinIO4Delphi
1.0.0
https://min.io/
สร้างข้อมูลการเชื่อมต่อ MINIO ในลักษณะเดียวกับที่คุณสร้างข้อมูลการเชื่อมต่อ Amazon:
var
LConnInfo: TMinIOConnectionInfo;
...
LConnInfo := TMinIOConnectionInfo.Create(nil);
LConnInfo.AccountKey := 'your_private_key';
LConnInfo.AccountName := 'your_public_key';
LConnInfo.StorageEndPoint := 'your_endpoint';
LConnInfo.UseDefaultEndpoints := false;
สร้างบริการจัดเก็บข้อมูล Minio ในลักษณะเดียวกับที่คุณสร้างบริการจัดเก็บอเมซอน:
var
LService: TMinIOStorageService;
...
LService := TMinIOStorageService.Create(LConnInfo);
ใช้ในวิธีทั่วไปรวมทั้ง abstractions การใช้งานนี้:
...
LService.UploadFile('your_bucket_name', 'local_file_path', 'remote_file_name');
LService.DeleteObject('your_bucket_name', 'remote_file_name');
...