Bucket class abstract
Access to operations on a specific cloud storage bucket.
Constructors
- Bucket()
Properties
- bucketName → String
-
Name of this bucket.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
absoluteObjectName(
String objectName) → String - Absolute name of an object in this bucket. This includes the gs:// prefix.
-
delete(
String name) → Future - Delete an object.
-
info(
String name) → Future< ObjectInfo> - Lookup object metadata.
-
list(
{String? prefix, String? delimiter}) → Stream< BucketEntry> - List objects in the bucket.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
page(
{String? prefix, String? delimiter, int pageSize = 50}) → Future< Page< BucketEntry> > - Start paging through objects in the bucket.
-
read(
String objectName, {int? offset, int? length}) → Stream< List< int> > - Read object content as byte stream.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateMetadata(
String objectName, ObjectMetadata metadata) → Future - Update object metadata.
-
write(
String objectName, {int? length, ObjectMetadata? metadata, Acl? acl, PredefinedAcl? predefinedAcl, String? contentType}) → StreamSink< List< int> > - Create a new object.
-
writeBytes(
String name, List< int> bytes, {ObjectMetadata? metadata, Acl? acl, PredefinedAcl? predefinedAcl, String? contentType}) → Future<ObjectInfo> - Create an new object in the bucket with specified content.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited