add_bucket_rules

package
v7.25.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

增加空间规则

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Credentials            credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
	Bucket                 string                          // 空间名称
	Name                   string                          // 规则名称空间内唯一,长度小于50,不能为空,只能为字母、数字、下划线
	Prefix                 string                          // 匹配的对象名称前缀,同一个空间内前缀不能重复
	DeleteAfterDays        int64                           // 指定上传文件多少天后删除,指定为 0 表示不删除,大于 0 表示多少天后删除
	ToIaAfterDays          int64                           // 指定文件上传多少天后转低频存储。指定为 0 表示不转低频存储
	ToArchiveAfterDays     int64                           // 指定文件上传多少天后转归档存储。指定为 0 表示不转归档存储
	ToDeepArchiveAfterDays int64                           // 指定文件上传多少天后转深度归档存储。指定为 0 表示不转深度归档存储
	ToArchiveIrAfterDays   int64                           // 指定文件上传多少天后转归档直读存储。指定为 0 表示不转归档直读存储
}

调用 API 所用的请求

type Response

type Response struct{}

获取 API 所用的响应

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL