get_buckets_v4

package
v7.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 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 BucketV4

type BucketV4 struct {
	Name        string // 空间名称
	Region      string // 空间区域 ID
	Private     bool   // 空间是否私有
	CreatedTime string // 空间创建时间
}

存储空间信息

func (*BucketV4) MarshalJSON

func (j *BucketV4) MarshalJSON() ([]byte, error)

func (*BucketV4) UnmarshalJSON

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

type BucketsResultV4

type BucketsResultV4 = Response

返回所有存储空间结果

type BucketsV4

type BucketsV4 = []BucketV4

存储空间列表

type Request

type Request struct {
	Region      string                          // 区域 ID
	Limit       int64                           // 分页大小。默认20,取值范围 1~100。
	Marker      string                          // 列举开始的空间标识
	Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}

调用 API 所用的请求

type Response

type Response struct {
	NextMarker  string // 下一页开始的空间标识
	IsTruncated bool   // 是否所有的结果都已经返回
	Buckets     BucketsV4
}

获取 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