MCPcopy Create free account
hub / github.com/apache/arrow / SetSSECustomerKey

Function SetSSECustomerKey

cpp/src/arrow/filesystem/s3_internal.h:342–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340
341template <typename S3RequestType>
342Status SetSSECustomerKey(S3RequestType* request, const std::string& sse_customer_key) {
343 ARROW_ASSIGN_OR_RAISE(auto maybe_headers, GetSSECustomerKeyHeaders(sse_customer_key));
344 if (!maybe_headers.has_value()) {
345 return Status::OK();
346 }
347 auto headers = std::move(maybe_headers).value();
348 request->SetSSECustomerKey(headers.sse_customer_key);
349 request->SetSSECustomerKeyMD5(headers.sse_customer_key_md5);
350 request->SetSSECustomerAlgorithm(headers.sse_customer_algorithm);
351 return Status::OK();
352}
353
354} // namespace internal
355} // namespace fs

Callers 5

GetObjectRangeFunction · 0.85
InitMethod · 0.85
CreateMultipartUploadMethod · 0.85
UploadMethod · 0.85

Calls 2

OKFunction · 0.50
valueMethod · 0.45

Tested by

no test coverage detected