Documentation
¶
Overview ¶
获取拥有的所有存储空间列表
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketV4 ¶
type BucketV4 struct {
Name string // 空间名称
Region string // 空间区域 ID
Private bool // 空间是否私有
CreatedTime string // 空间创建时间
}
存储空间信息
func (*BucketV4) MarshalJSON ¶
func (*BucketV4) UnmarshalJSON ¶
type Request ¶
type Request struct {
Region string // 区域 ID
Limit int64 // 分页大小。默认20,取值范围 1~100。
Marker string // 列举开始的空间标识
Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}
调用 API 所用的请求
type Response ¶
type Response struct {
NextMarker string // 下一页开始的空间标识
IsTruncated bool // 是否所有的结果都已经返回
Buckets BucketsV4
}
获取 API 所用的响应
func (*Response) MarshalJSON ¶
func (*Response) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.