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

Method ParseACL

cpp/src/arrow/filesystem/s3fs.cc:1424–1435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1422 }
1423
1424 static Result<S3Model::ObjectCannedACL> ParseACL(const std::string& v) {
1425 if (v.empty()) {
1426 return S3Model::ObjectCannedACL::NOT_SET;
1427 }
1428 auto acl = S3Model::ObjectCannedACLMapper::GetObjectCannedACLForName(ToAwsString(v));
1429 if (acl == S3Model::ObjectCannedACL::NOT_SET) {
1430 // XXX This actually never happens, as the AWS SDK dynamically
1431 // expands the enum range using Aws::GetEnumOverflowContainer()
1432 return Status::Invalid("Invalid S3 canned ACL: '", v, "'");
1433 }
1434 return acl;
1435 }
1436};
1437
1438template <typename ObjectRequest>

Callers

nothing calls this directly

Calls 3

ToAwsStringFunction · 0.85
InvalidFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected