MinIO4Delphi
1.0.0
https://min.io/
Créez les informations de connexion Minio de la même manière que vous créez les informations de connexion 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;
Créez le service de stockage Minio de la même manière que vous créez le service de stockage Amazon:
var
LService: TMinIOStorageService;
...
LService := TMinIOStorageService.Create(LConnInfo);
Utilisez-le de la manière conventionnelle plus ces abstractions de mise en œuvre:
...
LService.UploadFile('your_bucket_name', 'local_file_path', 'remote_file_name');
LService.DeleteObject('your_bucket_name', 'remote_file_name');
...