Documentation
¶
Overview ¶
创建目录分享
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
Bucket string // 分享的空间名称
Prefix string // 分享的对象名称前缀
DurationSeconds int64 // 分享过期时间,单位为秒,最小 900 秒,最长 7200 秒
ExtractCode string // 提取码,必须给出 6 个字符,仅大小写字母和数字
Permission string // 权限,目前仅支持 READONLY,未来会支持 READWRITE
}
调用 API 所用的请求
func (*Request) MarshalJSON ¶
func (*Request) UnmarshalJSON ¶
type Response ¶
type Response struct {
Id string // 分享 ID
Token string // 分享 Token
Expires string // 分享过期时间,遵循 ISO8601 风格,使用 UTC 0 时区时间
}
获取 API 所用的响应
func (*Response) MarshalJSON ¶
func (*Response) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.