Bucket class

Constructors

Bucket({required String? region, required String? accessKey, required String? secretKey, String? endpointUrl, Client? httpClient})

Properties

accessKey String?
finalinherited
endpointUrl String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
httpClient → Client
finalinherited
region String?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secretKey String?
finalinherited
service String
finalinherited

Methods

bucket(String bucket) → void
close() Future<void>
inherited
getUri(Uri uri) Future<XmlDocument>
inherited
listContents({String? delimiter, String? prefix, int? maxKeys}) Stream<BucketContent>
List the Bucket's Contents. https://developers.digitalocean.com/documentation/spaces/#list-bucket-contents
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preSignUpload(String key, {int? contentLength, String? contentType, Digest? contentSha256, Permissions permissions = Permissions.private, int expires = 900, Map<String, String>? meta}) String?
signRequest(BaseRequest request, {Digest? contentSha256, bool preSignedUrl = false, int expires = 86400}) String?
inherited
toString() String
A string representation of this object.
inherited
uploadData(String key, Uint8List data, String contentType, Permissions permissions, {Map<String, String>? meta, Digest? contentSha256}) Future<String?>
Uploads data from memory. Returns Etag.
uploadFile(String key, dynamic file, String contentType, Permissions permissions, {Map<String, String>? meta}) Future<String?>
Uploads file. Returns Etag.

Operators

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