get_objects_v2

package
v7.24.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 2 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 {
	Bucket      string                          // 指定存储空间
	Marker      string                          // 上一次列举返回的位置标记,作为本次列举的起点信息
	Limit       int64                           // 本次列举的条目数,范围为 1-1000
	Prefix      string                          // 指定前缀,只有资源名匹配该前缀的资源会被列出
	Delimiter   string                          // 指定目录分隔符,列出所有公共前缀(模拟列出目录效果)
	NeedParts   bool                            // 如果文件是通过分片上传的,是否返回对应的分片信息
	Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
}

调用 API 所用的请求

type Response

type Response struct {
	Body io.ReadCloser
}

获取 API 所用的响应

Jump to

Keyboard shortcuts

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