Documentation
¶
Overview ¶
获取空间规则
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketRule ¶
type BucketRule struct {
Name string // 空间规则名称
Prefix string // 匹配的对象名称前缀
DeleteAfterDays int64 // 上传文件多少天后删除
ToIaAfterDays int64 // 文件上传多少天后转低频存储
ToArchiveAfterDays int64 // 文件上传多少天后转归档存储
ToDeepArchiveAfterDays int64 // 文件上传多少天后转深度归档存储
ToArchiveIrAfterDays int64 // 文件上传多少天后转归档直读存储
CreatedTime string // 规则创建时间
}
空间规则
func (*BucketRule) MarshalJSON ¶
func (j *BucketRule) MarshalJSON() ([]byte, error)
func (*BucketRule) UnmarshalJSON ¶
func (j *BucketRule) UnmarshalJSON(data []byte) error
type Request ¶
type Request struct {
Bucket string // 空间名称
Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}
调用 API 所用的请求
type Response ¶
type Response struct {
BucketRules BucketRules // 空间规则列表
}
获取 API 所用的响应
func (*Response) MarshalJSON ¶
func (*Response) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.