OSSClient class

Constructors

OSSClient()
factory

Properties

bucket String
final
credentials Future<Credentials> Function()
final
endpoint String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getObject(OSSObjectGet ossObject, {String? bucket, ProgressCallback? onReceiveProgress, String? endpoint}) Future<void>
listObject({String? bucket, String? endpoint, String rootKey = "", bool deep = true}) Future<List<OSSObject>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
putObject(OSSObjectPut object, {String? bucket, String? endpoint, String? path, ProgressCallback? onSendProgress}) Future<OSSObjectPut>
  • bucket endpoint 一次性生效
  • path 上传路径 如不写则自动以 Objecttype time 生成path
  • toString() String
    A string representation of this object.
    inherited
    verify() Future<void>
    验证检查

    Operators

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

    Static Methods

    init({required String endpoint, required String bucket, required Future<Credentials> credentials()}) OSSClient
  • 初始化设置endpoint bucket getCredentials
  • credentials 获取 Credentials
  • 一旦初始化,则signer清空,上传前会重新拉取oss信息