Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lmbelo/minio4delphi
Delphi Amazon Cloud adapter for MinIO API
https://github.com/lmbelo/minio4delphi
amazon-s3 api cloud delphi minio
Last synced: 8 days ago
JSON representation
Delphi Amazon Cloud adapter for MinIO API
- Host: GitHub
- URL: https://github.com/lmbelo/minio4delphi
- Owner: lmbelo
- License: mit
- Created: 2023-05-25T13:15:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-10T00:16:22.000Z (3 months ago)
- Last Synced: 2024-08-10T01:24:42.839Z (3 months ago)
- Topics: amazon-s3, api, cloud, delphi, minio
- Language: Pascal
- Homepage:
- Size: 37.1 KB
- Stars: 19
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MinIO4Delphi - Based on Delphi's Amazon Cloud API
## High Performance Object Storage for AI
#### MinIO is a high-performance, S3 compatible object store. It is built for large scale AI/ML, data lake and database workloads. It runs on-prem and on any cloud (public or private) and from the data center to the edge. MinIO is software-defined and open source under GNU AGPL v3.
https://min.io/
### Usage
Create the MinIO connection info in the same manner as you create the [Amazon connection info](https://docwiki.embarcadero.com/Libraries/Alexandria/en/Data.Cloud.AmazonAPI.TAmazonConnectionInfo):
```
var
LConnInfo: TMinIOConnectionInfo;
...
LConnInfo := TMinIOConnectionInfo.Create(nil);
LConnInfo.AccountKey := 'your_private_key';
LConnInfo.AccountName := 'your_public_key';
LConnInfo.StorageEndPoint := 'your_endpoint';
LConnInfo.UseDefaultEndpoints := false;
```Create the MinIO storage service in the same manner as you create the [Amazon storage service](https://docwiki.embarcadero.com/Libraries/Alexandria/en/Data.Cloud.AmazonAPI.TAmazonStorageService):
```
var
LService: TMinIOStorageService;
...
LService := TMinIOStorageService.Create(LConnInfo);
```Use it in the conventional way plus this implementation abstractions:
```
...
LService.UploadFile('your_bucket_name', 'local_file_path', 'remote_file_name');
LService.DeleteObject('your_bucket_name', 'remote_file_name');
...
```### Sample 1
![image](https://github.com/user-attachments/assets/22ce3ca9-8dd3-403f-abf8-c51d4a26be25)