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