MinIO4Delphi
1.0.0
https://min.io/
以與創建Amazon連接信息相同的方式創建Minio連接信息:
var
LConnInfo: TMinIOConnectionInfo;
...
LConnInfo := TMinIOConnectionInfo.Create(nil);
LConnInfo.AccountKey := 'your_private_key';
LConnInfo.AccountName := 'your_public_key';
LConnInfo.StorageEndPoint := 'your_endpoint';
LConnInfo.UseDefaultEndpoints := false;
與創建Amazon Storage Service相同的方式創建Minio存儲服務:
var
LService: TMinIOStorageService;
...
LService := TMinIOStorageService.Create(LConnInfo);
以常規方式加上此實施摘要:
...
LService.UploadFile('your_bucket_name', 'local_file_path', 'remote_file_name');
LService.DeleteObject('your_bucket_name', 'remote_file_name');
...