| 2953 | } |
| 2954 | |
| 2955 | static Result<std::vector<std::string>> ProcessListBuckets( |
| 2956 | const Aws::S3::Model::ListBucketsOutcome& outcome) { |
| 2957 | if (!outcome.IsSuccess()) { |
| 2958 | return ErrorToStatus(std::forward_as_tuple("When listing buckets: "), "ListBuckets", |
| 2959 | outcome.GetError()); |
| 2960 | } |
| 2961 | std::vector<std::string> buckets; |
| 2962 | buckets.reserve(outcome.GetResult().GetBuckets().size()); |
| 2963 | for (const auto& bucket : outcome.GetResult().GetBuckets()) { |
| 2964 | buckets.emplace_back(FromAwsString(bucket.GetName())); |
| 2965 | } |
| 2966 | return buckets; |
| 2967 | } |
| 2968 | |
| 2969 | Result<std::vector<std::string>> ListBuckets() { |
| 2970 | ARROW_ASSIGN_OR_RAISE(auto client_lock, holder_->Lock()); |
no test coverage detected