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 Storage Service를 만듭니다.
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');
...