repo
stringlengths
1
152
file
stringlengths
15
205
code
stringlengths
0
41.6M
file_length
int64
0
41.6M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
90 values
null
ceph-main/src/rgw/rgw_rest_admin.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw/rgw_rest.h" class RGWRESTMgr_Admin : public RGWRESTMgr { public: RGWRESTMgr_Admin() {} ~RGWRESTMgr_Admin() override {} };
261
19.153846
70
h
null
ceph-main/src/rgw/rgw_rest_client.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_common.h" #include "rgw_rest_client.h" #include "rgw_auth_s3.h" #include "rgw_http_errors.h" #include "common/armor.h" #include "common/strtol.h" #include "include/str_list.h" #include "rgw_crypt_san...
30,784
26.364444
210
cc
null
ceph-main/src/rgw/rgw_rest_client.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_http_client.h" class RGWGetDataCB; class RGWHTTPSimpleRequest : public RGWHTTPClient { protected: int http_status; int status; using unique_lock = std::unique_lock<std::mutex>; ...
10,392
39.282946
229
h
null
ceph-main/src/rgw/rgw_rest_config.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
1,392
23.017241
112
cc
null
ceph-main/src/rgw/rgw_rest_config.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesse...
1,739
25.769231
112
h
null
ceph-main/src/rgw/rgw_rest_conn.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_zone.h" #include "rgw_rest_conn.h" #include "rgw_sal.h" #include "rgw_rados.h" #define dout_subsys ceph_subsys_rgw using namespace std; RGWRESTConn::RGWRESTConn(CephContext *_cct, rgw::sal::Driver*...
16,947
31.159393
203
cc
null
ceph-main/src/rgw/rgw_rest_conn.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_rest_client.h" #include "common/ceph_json.h" #include "common/RefCountedObj.h" #include "include/common_fwd.h" #include "rgw_sal_fwd.h" #include <atomic> class RGWSI_Zone; template<cl...
16,272
28.163082
222
h
null
ceph-main/src/rgw/rgw_rest_iam.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <boost/tokenizer.hpp> #include "rgw_auth_s3.h" #include "rgw_rest_iam.h" #include "rgw_rest_role.h" #include "rgw_rest_user_policy.h" #include "rgw_rest_oidc_provider.h" #define dout_context g_ceph_cont...
4,169
44.824176
128
cc
null
ceph-main/src/rgw/rgw_rest_iam.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_auth.h" #include "rgw_auth_filters.h" #include "rgw_rest.h" class RGWHandler_REST_IAM : public RGWHandler_REST { const rgw::auth::StrategyRegistry& auth_registry; bufferlist bl_post...
1,445
28.510204
74
h
null
ceph-main/src/rgw/rgw_rest_info.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_op.h" #include "rgw_rest_info.h" #include "rgw_sal.h" #define dout_subsys ceph_subsys_rgw class RGWOp_Info_Get : public RGWRESTOp { public: RGWOp_Info_Get() {} int check_caps(const RGWUserCaps...
1,431
27.64
105
cc
null
ceph-main/src/rgw/rgw_rest_info.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_rest.h" #include "rgw_rest_s3.h" class RGWHandler_Info : public RGWHandler_Auth_S3 { protected: RGWOp *op_get() override; public: using RGWHandler_Auth_S3::RGWHandler_Auth_S3; ~R...
839
23.705882
80
h
null
ceph-main/src/rgw/rgw_rest_metadata.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesse...
8,238
24.586957
117
cc
null
ceph-main/src/rgw/rgw_rest_metadata.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesse...
3,039
27.148148
80
h
null
ceph-main/src/rgw/rgw_rest_oidc_provider.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include "common/errno.h" #include "common/Formatter.h" #include "common/ceph_json.h" #include "include/types.h" #include "rgw_string.h" #include "rgw_common.h" #include "rgw_op.h" #include "r...
6,376
26.252137
84
cc
null
ceph-main/src/rgw/rgw_rest_oidc_provider.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_rest.h" #include "rgw_oidc_provider.h" class RGWRestOIDCProvider : public RGWRESTOp { protected: std::vector<std::string> client_ids; std::vector<std::string> thumbprints; std::st...
2,457
33.138889
72
h
null
ceph-main/src/rgw/rgw_rest_pubsub.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <algorithm> #include <boost/tokenizer.hpp> #include <optional> #include "rgw_rest_pubsub.h" #include "rgw_pubsub_push.h" #include "rgw_pubsub.h" #include "rgw_op.h" #include "rgw_rest.h" #include "rgw_rest_s3.h" ...
30,757
31.410959
175
cc
null
ceph-main/src/rgw/rgw_rest_ratelimit.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_rest_ratelimit.h" class RGWOp_Ratelimit_Info : public RGWRESTOp { int check_caps(const RGWUserCaps& caps) override { return caps.check_cap("ratelimit", RGW_CAP_READ); } void execute(optional_yie...
13,494
37.557143
140
cc
null
ceph-main/src/rgw/rgw_rest_ratelimit.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_rest.h" #include "rgw_rest_s3.h" #include "rgw_sal_rados.h" class RGWHandler_Ratelimit : public RGWHandler_Auth_S3 { protected: RGWOp *op_get() override; RGWOp *op_post() override; ...
924
25.428571
80
h
null
ceph-main/src/rgw/rgw_rest_role.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include <regex> #include "common/errno.h" #include "common/Formatter.h" #include "common/ceph_json.h" #include "include/types.h" #include "rgw_string.h" #include "rgw_common.h" #include "rgw_...
28,257
26.622678
133
cc
null
ceph-main/src/rgw/rgw_rest_role.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "common/async/yield_context.h" #include "rgw_role.h" #include "rgw_rest.h" class RGWRestRole : public RGWRESTOp { protected: std::string role_name; std::string role_path; std::string ...
6,347
34.071823
91
h
null
ceph-main/src/rgw/rgw_rest_s3.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include <array> #include <string.h> #include <string_view> #include "common/ceph_crypto.h" #include "common/split.h" #include "common/Formatter.h" #include "common/utf8.h" #include "common/ceph...
199,123
29.943901
175
cc
null
ceph-main/src/rgw/rgw_rest_s3.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #define TIME_BUF_SIZE 128 #include <mutex> #include <string_view> #include <boost/container/static_vector.hpp> #include <boost/crc.hpp> #include "common/sstring.hh" #include "rgw_op.h" #include "rg...
36,332
28.879112
129
h
null
ceph-main/src/rgw/rgw_rest_s3website.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2015 Robin H. Johnson <robin.johnson@dreamhost.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the ...
3,629
34.940594
147
h
null
ceph-main/src/rgw/rgw_rest_sts.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <vector> #include <string> #include <array> #include <string_view> #include <sstream> #include <memory> #include <boost/algorithm/string/predicate.hpp> #include <boost/format.hpp> #include <boost/optional....
26,562
31.393902
201
cc
null
ceph-main/src/rgw/rgw_rest_sts.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_auth.h" #include "rgw_auth_filters.h" #include "rgw_rest.h" #include "rgw_sts.h" #include "rgw_web_idp.h" #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declara...
8,472
34.902542
214
h
null
ceph-main/src/rgw/rgw_rest_swift.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <boost/algorithm/string/predicate.hpp> #include <boost/format.hpp> #include <boost/optional.hpp> #include <boost/utility/in_place_factory.hpp> #include "include/ceph_assert.h" #include "ceph_ver.h" #incl...
91,787
28.362764
111
cc
null
ceph-main/src/rgw/rgw_rest_swift.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #define TIME_BUF_SIZE 128 #include <string_view> #include <boost/optional.hpp> #include <boost/utility/typed_in_place_factory.hpp> #include "rgw_op.h" #include "rgw_rest.h" #include "rgw_swift_auth....
20,185
28.425656
108
h
null
ceph-main/src/rgw/rgw_rest_usage.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_op.h" #include "rgw_usage.h" #include "rgw_rest_usage.h" #include "rgw_sal.h" #include "include/str_list.h" #define dout_subsys ceph_subsys_rgw using namespace std; class RGWOp_Usage_Get : public ...
3,198
25.221311
128
cc
null
ceph-main/src/rgw/rgw_rest_usage.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_rest.h" #include "rgw_rest_s3.h" class RGWHandler_Usage : public RGWHandler_Auth_S3 { protected: RGWOp *op_get() override; RGWOp *op_delete() override; public: using RGWHandler_A...
876
24.057143
80
h
null
ceph-main/src/rgw/rgw_rest_user_policy.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include <regex> #include "common/errno.h" #include "common/Formatter.h" #include "common/ceph_json.h" #include "include/types.h" #include "rgw_string.h" #include "rgw_common.h" #include "rgw_...
11,601
27.024155
105
cc
null
ceph-main/src/rgw/rgw_rest_user_policy.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_rest.h" class RGWRestUserPolicy : public RGWRESTOp { protected: static constexpr int MAX_POLICY_NAME_LEN = 128; std::string policy_name; std::string user_name; std::string policy...
2,127
27.756757
70
h
null
ceph-main/src/rgw/rgw_rest_zero.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Fr...
5,689
27.592965
87
cc
null
ceph-main/src/rgw/rgw_rest_zero.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2.1, as published by the Fr...
947
26.085714
73
h
null
ceph-main/src/rgw/rgw_role.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include <ctime> #include <regex> #include <boost/algorithm/string/replace.hpp> #include "common/errno.h" #include "common/Formatter.h" #include "common/ceph_json.h" #include "common/ceph_time.h...
12,464
27.011236
111
cc
null
ceph-main/src/rgw/rgw_role.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include "common/async/yield_context.h" #include "common/ceph_json.h" #include "common/ceph_context.h" #include "rgw_rados.h" #include "rgw_metadata.h" class RGWRados; namespace ...
7,005
32.361905
154
h
null
ceph-main/src/rgw/rgw_s3select.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_s3select_private.h" #define dout_subsys ceph_subsys_rgw namespace rgw::s3select { RGWOp* create_s3select_op() { return new RGWSelectObj_ObjStore_S3(); } }; using namespace s3selectEngine; std::s...
38,228
37.190809
209
cc
null
ceph-main/src/rgw/rgw_s3select.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp // #pragma once namespace rgw::s3select { RGWOp* create_s3select_op(); }
181
15.545455
70
h
null
ceph-main/src/rgw/rgw_s3select_private.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp // #pragma once #include <errno.h> #include <array> #include <string.h> #include <string_view> #include "common/ceph_crypto.h" #include "common/split.h" #include "common/Formatter.h" #include "common/utf8.h" #incl...
6,863
25.501931
168
h
null
ceph-main/src/rgw/rgw_sal.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
11,881
26.761682
149
cc
null
ceph-main/src/rgw/rgw_sal.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
70,616
42.059146
203
h
null
ceph-main/src/rgw/rgw_sal_config.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2022 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
13,345
43.192053
83
h
null
ceph-main/src/rgw/rgw_sal_daos.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=2 sw=2 expandtab ft=cpp /* * Ceph - scalable distributed file system * * SAL implementation for the CORTX DAOS backend * * Copyright (C) 2022 Seagate Technology LLC and/or its Affiliates * * This is free software; you can redistri...
80,679
31.917177
88
cc
null
ceph-main/src/rgw/rgw_sal_daos.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=2 sw=2 expandtab ft=cpp /* * Ceph - scalable distributed file system * * SAL implementation for the CORTX Daos backend * * Copyright (C) 2022 Seagate Technology LLC and/or its Affiliates * * This is free software; you can redistri...
43,550
40.835735
80
h
null
ceph-main/src/rgw/rgw_sal_dbstore.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2021 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
58,908
28.191774
178
cc
null
ceph-main/src/rgw/rgw_sal_dbstore.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2021 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
41,175
44.198683
262
h
null
ceph-main/src/rgw/rgw_sal_filter.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2022 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
37,991
27.142222
185
cc
null
ceph-main/src/rgw/rgw_sal_filter.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2022 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
42,650
46.024256
154
h
null
ceph-main/src/rgw/rgw_sal_fwd.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2022 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
837
18.952381
70
h
null
ceph-main/src/rgw/rgw_sal_motr.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=2 sw=2 expandtab ft=cpp /* * Ceph - scalable distributed file system * * SAL implementation for the CORTX Motr backend * * Copyright (C) 2021 Seagate Technology LLC and/or its Affiliates * * This is free software; you can redistri...
123,860
29.957511
178
cc
null
ceph-main/src/rgw/rgw_sal_motr.h
// vim: ts=2 sw=2 expandtab ft=cpp /* * Ceph - scalable distributed file system * * SAL implementation for the CORTX Motr backend * * Copyright (C) 2021 Seagate Technology LLC and/or its Affiliates * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
51,012
41.724456
210
h
null
ceph-main/src/rgw/rgw_sal_store.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2022 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
17,406
37.941834
163
h
null
ceph-main/src/rgw/rgw_signal.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2022 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
2,217
23.108696
72
cc
null
ceph-main/src/rgw/rgw_signal.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2022 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
699
20.875
70
h
null
ceph-main/src/rgw/rgw_string.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_string.h" static bool char_eq(char c1, char c2) { return c1 == c2; } static bool ci_char_eq(char c1, char c2) { return tolower(c1) == tolower(c2); } bool match_wildcards(std::string_view patter...
976
20.23913
76
cc
null
ceph-main/src/rgw/rgw_string.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <errno.h> #include <stdlib.h> #include <limits.h> #include <string_view> #include <string> #include <stdexcept> #include <boost/container/small_vector.hpp> struct ltstr_nocase { bool oper...
6,357
25.940678
96
h
null
ceph-main/src/rgw/rgw_sts.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include <ctime> #include <regex> #include <boost/format.hpp> #include <boost/algorithm/string/replace.hpp> #include "common/errno.h" #include "common/Formatter.h" #include "common/ceph_json.h" ...
16,619
34.361702
141
cc
null
ceph-main/src/rgw/rgw_sts.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_role.h" #include "rgw_auth.h" #include "rgw_web_idp.h" namespace STS { class AssumeRoleRequestBase { protected: static constexpr uint64_t MIN_POLICY_SIZE = 1; static constexpr uint...
9,296
35.892857
132
h
null
ceph-main/src/rgw/rgw_swift_auth.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <array> #include <algorithm> #include <string_view> #include <boost/container/static_vector.hpp> #include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string.hpp> #include "rgw_swift_...
22,983
28.618557
129
cc
null
ceph-main/src/rgw/rgw_swift_auth.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_common.h" #include "rgw_user.h" #include "rgw_op.h" #include "rgw_rest.h" #include "rgw_auth.h" #include "rgw_auth_keystone.h" #include "rgw_auth_filters.h" #include "rgw_sal.h" #define...
13,237
36.290141
114
h
null
ceph-main/src/rgw/rgw_sync.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_sync.h" #define dout_subsys ceph_subsys_rgw using namespace std; std::ostream& RGWMetaSyncStatusManager::gen_prefix(std::ostream& out) const { return out << "meta sync: "; } unsigned RGWMetaSyn...
448
17.708333
76
cc
null
ceph-main/src/rgw/rgw_sync_checkpoint.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2020 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
9,366
33.061818
107
cc
null
ceph-main/src/rgw/rgw_sync_checkpoint.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2020 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
1,239
33.444444
78
h
null
ceph-main/src/rgw/rgw_sync_policy.cc
#include "rgw_common.h" #include "rgw_sync_policy.h" #include "rgw_bucket.h" #define dout_subsys ceph_subsys_rgw using namespace std; string rgw_sync_bucket_entity::bucket_key() const { return rgw_sync_bucket_entities::bucket_key(bucket); } bool rgw_sync_pipe_filter_tag::from_str(const string& s) { if (s.empt...
17,358
21.029188
159
cc
null
ceph-main/src/rgw/rgw_sync_policy.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ver...
17,549
24.695461
136
h
null
ceph-main/src/rgw/rgw_tag.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <map> #include <string> #include <common/errno.h> #include <boost/algorithm/string.hpp> #include "rgw_tag.h" #include "rgw_common.h" using namespace std; void RGWObjTags::add_tag(const string& key, con...
1,505
21.147059
71
cc
null
ceph-main/src/rgw/rgw_tag.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include <include/types.h> #include <map> class RGWObjTags { public: using tag_map_t = std::multimap <std::string, std::string>; protected: tag_map_t tag_map; uint32_t max_o...
1,360
26.22
75
h
null
ceph-main/src/rgw/rgw_tag_s3.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <map> #include <string> #include <iostream> #include "include/types.h" #include "rgw_tag_s3.h" using namespace std; void RGWObjTagEntry_S3::decode_xml(XMLObj *obj) { RGWXMLDecoder::decode_xml("Key", ...
1,505
21.477612
70
cc
null
ceph-main/src/rgw/rgw_tag_s3.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <string> #include <iostream> #include <include/types.h> #include <common/Formatter.h> #include <expat.h> #include "rgw_tag.h" #include "rgw_xml.h" class RGWObjTagEntry_S3 { ...
1,004
19.1
81
h
null
ceph-main/src/rgw/rgw_tar.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <algorithm> #include <array> #include <cstring> #include <string_view> #include <tuple> #include <utility> #include <boost/optional.hpp> #include <boost/range/adaptor/reversed.hpp> namespac...
4,059
25.363636
78
h
null
ceph-main/src/rgw/rgw_token.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2016 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
3,512
23.227586
89
cc
null
ceph-main/src/rgw/rgw_token.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2016 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
4,088
22.912281
84
h
null
ceph-main/src/rgw/rgw_tools.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include "common/errno.h" #include "rgw_tools.h" #define dout_subsys ceph_subsys_rgw #define dout_context g_ceph_context #define READ_CHUNK_LEN (512 * 1024) using namespace std; static std:...
2,678
20.432
98
cc
null
ceph-main/src/rgw/rgw_torrent.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_torrent.h" #include <ctime> #include <fmt/format.h> #include "common/split.h" #include "rgw_sal.h" #define ANNOUNCE "announce" #define ANNOUNCE_LIST "announce-list" #define COMMENT ...
5,066
25.668421
78
cc
null
ceph-main/src/rgw/rgw_torrent.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "common/ceph_crypto.h" #include "common/dout.h" #include "common/async/yield_context.h" #include "rgw_putobj.h" #include "rgw_sal_fwd.h" //control characters void bencode_dict(bufferlist& b...
1,639
26.79661
75
h
null
ceph-main/src/rgw/rgw_tracer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <string> #include "rgw_tracer.h" namespace tracing { namespace rgw { tracing::Tracer tracer; } // namespace rgw } // namespace tracing
246
16.642857
70
cc
null
ceph-main/src/rgw/rgw_tracer.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "common/tracer.h" #include "rgw_common.h" namespace tracing { namespace rgw { const auto OP = "op"; const auto BUCKET_NAME = "bucket_name"; const auto USER_ID = "user_id"; const auto OBJECT_NAME = ...
912
25.085714
95
h
null
ceph-main/src/rgw/rgw_url.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <string> #include <regex> namespace rgw { namespace { const auto USER_GROUP_IDX = 3; const auto PASSWORD_GROUP_IDX = 4; const auto HOST_GROUP_IDX = 5; const std::string schema_re = "([[:alpha:]]+:\\/\\...
1,452
28.06
111
cc
null
ceph-main/src/rgw/rgw_url.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> namespace rgw { // parse a URL of the form: http|https|amqp|amqps|kafka://[user:password@]<host>[:port] bool parse_url_authority(const std::string& url, std::string& host, std::string& user...
440
32.923077
110
h
null
ceph-main/src/rgw/rgw_usage.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <string> #include <map> #include "rgw_rados.h" #include "rgw_usage.h" #include "rgw_formats.h" #include "rgw_sal.h" using namespace std; static void dump_usage_categories_info(Formatter *formatter, cons...
5,637
31.77907
125
cc
null
ceph-main/src/rgw/rgw_usage.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include <map> #include "common/Formatter.h" #include "common/dout.h" #include "rgw_formats.h" #include "rgw_user.h" #include "rgw_sal_fwd.h" class RGWUsage { public: static int...
897
27.967742
94
h
null
ceph-main/src/rgw/rgw_user.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_sal_rados.h" #include "include/types.h" #include "rgw_user.h" // until everything is moved from rgw_common #include "rgw_common.h" #define dout_subsys ceph_subsys_rgw using namespace std; int rgw...
3,607
27.1875
111
cc
null
ceph-main/src/rgw/rgw_user_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
3,596
21.622642
86
h
null
ceph-main/src/rgw/rgw_web_idp.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once namespace rgw { namespace web_idp { //WebToken contains some claims from the decoded token which are of interest to us. struct WebTokenClaims { //Subject of the token std::string sub; //Intende...
599
21.222222
83
h
null
ceph-main/src/rgw/rgw_website.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2015 Yehuda Sadeh <yehuda@redhat.com> * Copyright (C) 2015 Robin H. Johnson <robin.johnson@dreamhost.com> * * This is free software; you can red...
11,080
31.400585
118
cc
null
ceph-main/src/rgw/rgw_website.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2015 Yehuda Sadeh <yehuda@redhat.com> * Copyright (C) 2015 Robin H. Johnson <robin.johnson@dreamhost.com> * * This is free software; you can redi...
6,407
25.262295
76
h
null
ceph-main/src/rgw/rgw_worker.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,124
22.097826
91
h
null
ceph-main/src/rgw/rgw_xml.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <string.h> #include <iostream> #include <map> #include <expat.h> #include "include/types.h" #include "include/utime.h" #include "rgw_xml.h" using namespace std; XMLObjIter:: XMLObjIter() { } XMLObjI...
10,001
18.884692
94
cc
null
ceph-main/src/rgw/rgw_xml.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <stdexcept> #include <string> #include <iosfwd> #include <include/types.h> #include <common/Formatter.h> class XMLObj; class RGWXMLParser; class XMLObjIter { public: typede...
10,985
28.532258
127
h
null
ceph-main/src/rgw/rgw_xml_enc.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2015 Yehuda Sadeh <yehuda@redhat.com> * Copyright (C) 2015 Robin H. Johnson <robin.johnson@dreamhost.com> * * This is free software; you can redi...
639
23.615385
70
cc
null
ceph-main/src/rgw/rgw_zone.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <optional> #include "common/errno.h" #include "rgw_zone.h" #include "rgw_sal_config.h" #include "rgw_sync.h" #include "services/svc_zone.h" #define dout_context g_ceph_context #define dout_subsys ceph...
43,436
30.659621
135
cc
null
ceph-main/src/rgw/rgw_zone_features.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* N.B., this header defines fundamental serialized types. Do not * include files which can only be compiled in radosgw or OSD * contexts (e.g., rgw_sal.h, rgw_common.h) */ #pragma once #include <string> #incl...
1,293
25.958333
76
h
null
ceph-main/src/rgw/rgw_zone_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
16,654
25.605431
117
h
null
ceph-main/src/rgw/driver/d4n/d4n_datacache.cc
#include "d4n_datacache.h" #define dout_subsys ceph_subsys_rgw #define dout_context g_ceph_context /* Base metadata and data fields should remain consistent */ std::vector<std::string> baseFields { "mtime", "object_size", "accounted_size", "epoch", "version_id", "source_zone_short_id", "bucket_count", ...
11,770
22.973523
122
cc
null
ceph-main/src/rgw/driver/d4n/d4n_datacache.h
#ifndef CEPH_RGWD4NCACHE_H #define CEPH_RGWD4NCACHE_H #include "rgw_common.h" #include <cpp_redis/cpp_redis> #include <string> #include <iostream> class RGWD4NCache { public: CephContext *cct; RGWD4NCache() {} RGWD4NCache(std::string cacheHost, int cachePort):host(cacheHost), port(cachePort) {} vo...
1,308
30.926829
127
h
null
ceph-main/src/rgw/driver/d4n/d4n_directory.cc
#include "d4n_directory.h" #define dout_subsys ceph_subsys_rgw #define dout_context g_ceph_context int RGWBlockDirectory::findClient(cpp_redis::client *client) { if (client->is_connected()) return 0; if (host == "" || port == 0) { dout(10) << "RGW D4N Directory: D4N directory endpoint was not configured ...
4,354
23.194444
119
cc
null
ceph-main/src/rgw/driver/d4n/d4n_directory.h
#ifndef CEPH_RGWD4NDIRECTORY_H #define CEPH_RGWD4NDIRECTORY_H #include "rgw_common.h" #include <cpp_redis/cpp_redis> #include <string> #include <iostream> struct cache_obj { std::string bucket_name; /* s3 bucket name */ std::string obj_name; /* s3 obj name */ }; struct cache_block { cache_obj c_obj; uint64_t...
1,294
22.981481
116
h
null
ceph-main/src/rgw/driver/d4n/rgw_sal_d4n.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2022 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
19,718
33.777778
185
cc
null
ceph-main/src/rgw/driver/d4n/rgw_sal_d4n.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2022 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
7,876
38.385
136
h
null
ceph-main/src/rgw/driver/dbstore/dbstore_main.cc
#include <stdio.h> #include <sqlite3.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include "dbstore_mgr.h" #include <dbstore.h> #include <dbstore_log.h> using namespace std; using namespace rgw::store; using DB = rgw::store::DB; struct thr_args { DB *dbs; int thr_id; }; void* process(void *ar...
5,126
24.635
86
cc
null
ceph-main/src/rgw/driver/dbstore/dbstore_mgr.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "dbstore_mgr.h" #include "common/dbstore_log.h" #include <filesystem> static constexpr auto dout_subsys = ceph_subsys_rgw; using namespace std; /* Given a tenant, find and return the DBStore handle. * If no...
3,136
21.248227
95
cc