MinioCloudDriver class

Cloud storage driver implementation for MinIO and S3-compatible services.

This driver provides access to object storage services like MinIO, AWS S3, DigitalOcean Spaces, and Cloudflare R2 using the MinIO Dart client.

Implemented types

Constructors

MinioCloudDriver({required Minio client, required String bucket, String? rootPrefix, Uri? baseUrl, bool enforcePathStyle = false, bool autoCreateBucket = false})

Properties

autoCreateBucket bool
final
baseUrl Uri?
final
bucket String
final
client Minio
final
enforcePathStyle bool
final
hashCode int
The hash code for this object.
no setterinherited
rootPrefix String
Optional prefix applied to all remote paths (for scoped disks).
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsTemporaryUrls bool
Whether this driver supports generating temporary URLs.
no setteroverride

Methods

copy(String from, String to) Future<void>
Copy an object from from to to.
override
delete(String path) Future<void>
Remove the object at path.
override
deleteMany(Iterable<String> paths) Future<void>
Remove many objects in a single operation when supported.
override
download(String path) Future<Stream<List<int>>>
Download the entire object as a stream.
override
downloadRange(String path, {int? start, int? end}) Future<Stream<List<int>>>
Download a byte range from the object.
override
ensureReady() Future<void>
Return true once the driver is ready to service requests.
override
list(String prefix, {bool recursive = false}) Stream<CloudStorageItem>
List remote entries beneath a prefix.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
presignDownload(String path, Duration expires, {Map<String, dynamic>? options}) Future<String?>
Generate a temporary download URL or return null when unsupported.
override
presignUpload(String path, Duration expires, {Map<String, dynamic>? options}) Future<CloudPresignedUpload?>
Generate a temporary upload URL or return null when unsupported.
override
publicUrl(String path) Uri?
Generate a public URL if the provider supports it.
override
stat(String path) Future<CloudStorageStat?>
Retrieve metadata for a remote path.
override
toString() String
A string representation of this object.
inherited
upload(String path, Stream<List<int>> data, {int? length, Map<String, String>? metadata}) Future<void>
Upload new content to a remote path.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited