get_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: 3 Imported by: 0

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 BucketRules

type BucketRules []BucketRule

空间规则列表

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 (j *Response) MarshalJSON() ([]byte, error)

func (*Response) UnmarshalJSON

func (j *Response) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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