github.com/qiniu/go-sdk/v7@v7.27.0/storagev2/apis/get_objects_v2/api.go (about)

     1  // THIS FILE IS GENERATED BY api-generator, DO NOT EDIT DIRECTLY!
     2  
     3  // 列举指定存储空间里的所有对象条目
     4  package get_objects_v2
     5  
     6  import (
     7  	"io"
     8  
     9  	credentials "github.com/qiniu/go-sdk/v7/storagev2/credentials"
    10  )
    11  
    12  // 调用 API 所用的请求
    13  type Request struct {
    14  	Bucket      string                          // 指定存储空间
    15  	Marker      string                          // 上一次列举返回的位置标记,作为本次列举的起点信息
    16  	Limit       int64                           // 本次列举的条目数,范围为 1-1000
    17  	Prefix      string                          // 指定前缀,只有资源名匹配该前缀的资源会被列出
    18  	Delimiter   string                          // 指定目录分隔符,列出所有公共前缀(模拟列出目录效果)
    19  	NeedParts   bool                            // 如果文件是通过分片上传的,是否返回对应的分片信息
    20  	Credentials credentials.CredentialsProvider // 鉴权参数,用于生成鉴权凭证,如果为空,则使用 HTTPClientOptions 中的 CredentialsProvider
    21  }
    22  
    23  // 获取 API 所用的响应
    24  type Response struct {
    25  	Body io.ReadCloser
    26  }