Documentation
¶
Overview ¶
获取存储空间事件通知规则
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BucketEventRule ¶
type BucketEventRule struct {
Name string // 规则名称,bucket 内唯一,长度小于 50,不能为空,只能为字母、数字、下划线
Prefix string // 匹配文件前缀
Suffix string // 匹配文件后缀
EventTypes EventTypes // 事件类型,可以指定多个,包括 put,mkfile,delete,copy,move,append,disable,enable,deleteMarkerCreate,predelete(删除之前触发),restore:completed
CallbackUrls CallbackUrls // 回调地址,可以指定多个
AccessKey string // 设置的话会对通知请求用对应的 accessKey,secretKey 进行签名
Host string // 通知请求的 Host
}
存储空间事件通知规则
func (*BucketEventRule) MarshalJSON ¶
func (j *BucketEventRule) MarshalJSON() ([]byte, error)
func (*BucketEventRule) UnmarshalJSON ¶
func (j *BucketEventRule) UnmarshalJSON(data []byte) error
type Request ¶
type Request struct {
Bucket string // 存储空间名称
Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}
调用 API 所用的请求
type Response ¶
type Response struct {
BucketEventRules BucketEventRules // 所有存储空间事件通知规则
}
获取 API 所用的响应
func (*Response) MarshalJSON ¶
func (*Response) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.