COSConfig class

Constructors

COSConfig({required String appid, required String secretKey, required String secretId, required String region, String scheme = 'https', int signValidity = 900000})

Properties

appid String
appid 从腾讯云控制台获取。
final
hashCode int
The hash code for this object.
no setterinherited
region String
默认的 region,调用具体方法时不指定则会使用。
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheme String
请求协议,默认使用 https。
final
secretId String
secretId 从腾讯云控制台获取。
final
secretKey String
secretKey 从腾讯云控制台获取。
final
signValidity int
签名的有限期,单位为毫秒,默认为 900 秒。
final

Methods

getEndpoint(String bucket, String? regionValue) String
获取接入点 bucket 存储桶名称 regionValue 地域名称,默认使用 region
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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