Client class

OSS Client

Constructors

Client.new(String stsRequestUrl, String endpointDomain, GetToken getToken)
init @param stsRequestUrl type:String Url to get sts token @param endpointDomain type:String Domain of endpoint @param getToken type:GetToken function for get sts token
Client.static(String accessKey, String accessSecret, String region)

Properties

endpoint String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stsRequestUrl String
getter/setter pair
tokenGetter GetToken
getter/setter pair

Methods

checkAuthed() bool
checkExpire(String? expire) bool
completePartUpload(String bucketName, String fileKey, String uploadId, List<String> etags) HttpRequest
deleteObject(String bucketName, String fileKey) HttpRequest
delete file @param bucketName type:String name of bucket @param fileKey type:String upload filename @return type:HttpRequest
getAuth() Future<Client>
try to get sts auth token
initMultipartUpload(String bucketName, String fileKey) HttpRequest
start multipart upload
list_buckets({String prefix = '', String marker = '', int max_keys = 100, Map<String, dynamic>? params}) HttpRequest
List Buckets
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putObject(List<int> fileData, String bucketName, String fileKey) HttpRequest
upload file @param fileData type:List
toString() String
A string representation of this object.
inherited
uploadPart(String bucketName, String fileKey, String uploadId, int partNumber, List<int> data) HttpRequest

Operators

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