GcsFileStorageAdapter class
Google Cloud Storage and API-compatible emulators (fake-gcs-server).
- Implemented types
Constructors
- GcsFileStorageAdapter({required String bucket, String? endpoint, String project = 'dartvel', DVGcsTokenProvider? token, DVHttpSend transport = dvSendHttpRequest})
Properties
- bucket → String
-
final
- endpoint → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- project → String
-
Only used when creating a bucket, which the real service requires and an
emulator ignores.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → DVGcsTokenProvider
-
final
- transport → DVHttpSend
-
final
Methods
-
createBucket(
) → Future< void> - Creates the bucket, ignoring the case where it already exists.
-
delete(
String key) → Future< void> -
override
-
exists(
String key) → Future< bool> -
override
-
get(
String key) → Future< List< int> > -
override
-
list(
{String prefix = ''}) → Future< List< String> > -
Object keys, optionally restricted to those beginning with
prefix.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
String key, List< int> bytes, {String? contentType}) → Future<void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited