CloudStorageDriver class abstract
Driver abstraction used by the cloud filesystem backend.
Implementations should translate calls to the concrete provider (MinIO, S3, Dropbox, etc.) without leaking provider-specific APIs to the filesystem / adapter layers.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- rootPrefix → String
-
Optional prefix applied to all remote paths (for scoped disks).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supportsTemporaryUrls → bool
-
Whether this driver supports generating temporary URLs.
no setter
Methods
-
copy(
String from, String to) → Future< void> -
Copy an object from
fromtoto. -
delete(
String path) → Future< void> -
Remove the object at
path. -
deleteMany(
Iterable< String> paths) → Future<void> - Remove many objects in a single operation when supported.
-
download(
String path) → Future< Stream< List< >int> > - Download the entire object as a stream.
-
downloadRange(
String path, {int? start, int? end}) → Future< Stream< List< >int> > - Download a byte range from the object.
-
ensureReady(
) → Future< void> -
Return
trueonce the driver is ready to service requests. -
list(
String prefix, {bool recursive = false}) → Stream< CloudStorageItem> - List remote entries beneath a prefix.
-
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
nullwhen unsupported. -
presignUpload(
String path, Duration expires, {Map< String, dynamic> ? options}) → Future<CloudPresignedUpload?> -
Generate a temporary upload URL or return
nullwhen unsupported. -
publicUrl(
String path) → Uri? - Generate a public URL if the provider supports it.
-
stat(
String path) → Future< CloudStorageStat?> - Retrieve metadata for a remote path.
-
toString(
) → String -
A string representation of this object.
inherited
-
upload(
String path, Stream< List< data, {int? length, Map<int> >String, String> ? metadata}) → Future<void> - Upload new content to a remote path.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited