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 // 存储空间名称
Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}
调用 API 所用的请求
type Response ¶
type Response struct {
Source string // 镜像回源地址,可以有多个,以 `;` 分隔
Host string // 请求镜像地址时携带的 `Host` 头部
Expires int64 // 镜像回源地址过期时长
Protected int64 // 是否开启了原图保护
Private int64 // 是否是私有空间
NoIndexPage int64 // 是否禁用 index.html(或 index.htm) 页面
MaxAge int64 // 客户端缓存过期时长
Separator string // 图片样式分隔符,可能返回多个
Styles map[string]string // 图片样式,键表示图片样式命令名字,值表示图片样式命令内容
AntiLeechMode int64 // 防盗链模式,1:表示设置 Referer 白名单; 2:表示设置 Referer 黑名单
TokenAntiLeech int64 // Token 防盗链模式, 0:表示关闭,1:表示打开
ReferWl AllowedReferer // 防盗链 Referer 白名单列表
ReferBl BlockedReferer // 防盗链 Referer 黑名单列表
SourceEnabled bool // 在源站支持的情况下是否开启源站的 Referer 防盗链
NoReferer bool // 0:表示不允许空 Refer 访问; 1:表示允许空 Refer 访问
MacKey string // 第一个 MacKey,Index 为 1,用于防盗链 Token 的生成
MacKey2 string // 第二个 MacKey,Index 为 2,用于防盗链 Token 的生成
Zone string // 存储区域,兼容保留
Region string // 存储区域
Remark string // 空间备注信息
CreatedAt string // 空间创建时间
}
获取 API 所用的响应
func (*Response) MarshalJSON ¶
func (*Response) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.