MCPcopy Create free account
hub / github.com/apache/cloudberry / getBucketResponse

Method getBucketResponse

gpcontrib/gpcloud/src/s3interface.cpp:161–176  ·  view source on GitHub ↗

require curl 7.17 higher http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html

Source from the content-addressed store, hash-verified

159// require curl 7.17 higher
160// http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketGET.html
161Response S3InterfaceService::getBucketResponse(const S3Url &s3Url, const string &encodedQuery) {
162 HTTPHeaders headers;
163 headers.Add(HOST, s3Url.getHostForCurl());
164 headers.Add(X_AMZ_CONTENT_SHA256,
165 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"); // sha256hex
166 // of empty
167 // string
168
169 SignRequestV4("GET", &headers, s3Url.getRegion(), s3Url.getPathForCurl(), encodedQuery,
170 this->params.getCred());
171
172 stringstream urlWithQuery;
173 urlWithQuery << s3Url.getFullUrlForCurl() << "?" << encodedQuery;
174
175 return this->getResponseWithRetries(urlWithQuery.str(), headers);
176}
177
178bool S3InterfaceService::parseBucketXML(ListBucketResult *result, xmlParserCtxtPtr xmlcontext,
179 string &marker) {

Callers

nothing calls this directly

Calls 7

SignRequestV4Function · 0.85
getHostForCurlMethod · 0.80
getPathForCurlMethod · 0.80
getFullUrlForCurlMethod · 0.80
AddMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected