Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

MinIO4Delphi

Delphi Amazon Cloud adapter for MinIO API

View on GitHub

Member rating

No ratings yet.

Sign in to rate 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:

pascal
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:

pascal
var
  LService: TMinIOStorageService;
...
  LService := TMinIOStorageService.Create(LConnInfo);

Use it in the conventional way plus this implementation abstractions:

pascal
...
  LService.UploadFile('your_bucket_name', 'local_file_path', 'remote_file_name');
  LService.DeleteObject('your_bucket_name', 'remote_file_name');
...

Sample 1

image