S3BackendAdapter class
Reads and writes object metadata on Amazon S3 (s3fs).
S3 metadata keys are lowercased with _ converted to -, and values must
be printable ASCII without spaces at either end. ADK's own metadata keys
are mapped back on read and their values are percent-encoded so they
round-trip. Caller keys must be HTTP header names (RFC 9110 tokens), and
caller keys that would read back as ADK's own keys or as each other are
rejected.
- Inheritance
-
- Object
- FsspecBackendAdapter
- S3BackendAdapter
Constructors
- S3BackendAdapter(FilesystemProtocol fs, {double clock()?})
- Creates an S3 backend adapter.
Properties
- fs → FilesystemProtocol
-
Underlying fsspec filesystem.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storesCustomMetadata → bool
-
Whether createObject persists content type and custom object metadata.
no setteroverride
Methods
-
createObject(
String key, List< int> data, {String? contentType, Map<String, String> metadata = const <String, String>{}}) → Future<void> -
Creates the version object
key, failing with FsspecFileExistsException if it already exists.override -
findDetail(
String prefix) → Future< Object> -
Returns
find(detail: true)entries for objects underprefix.inherited -
fromInfo(
String key, Map< String, Object?> info) → FsspecObjectMetadata -
Normalizes an
info()/find(detail: true)map forkey.override -
fromInfoAsync(
String key, Map< String, Object?> info) → Future<FsspecObjectMetadata> -
Asynchronously normalizes an
info()/find(detail: true)map forkey. Defaults to fromInfo.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readListingMetadata(
Map< String, Map< entries) → Future<String, Object?> >Map< String, FsspecObjectMetadata> > -
Normalizes
find(detail: true)entries, keyed by object path.override -
readMetadata(
String key) → Future< FsspecObjectMetadata?> -
Reads and normalizes metadata for a single file object at
key.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited