Documentation
¶
Overview ¶
校验目录分享并提取分享信息
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Request ¶
type Request struct {
Token string // 分享 Token
Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
ExtractCode string // 提取码
}
调用 API 所用的请求
func (*Request) MarshalJSON ¶
func (*Request) UnmarshalJSON ¶
type Response ¶
type Response struct {
Endpoint string // 空间所用的 S3 域名
Region string // 空间所在的 S3 区域 ID
BucketName string // 空间名称
BucketId string // 空间 ID
Prefix string // 被分享的目录路径
Permission string // 权限,目前仅支持 READONLY,未来会支持 READWRITE
Expires string // 分享过期时间,遵循 ISO8601 风格,使用 UTC 0 时区时间
FederatedAk string // S3 STS Access Key
FederatedSk string // S3 STS Secret Key
SessionToken string // S3 STS Session Token
}
获取 API 所用的响应
func (*Response) MarshalJSON ¶
func (*Response) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.