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ストレージサービスを作成するのと同じ方法で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');
...