Search is not available for this dataset
repo
stringlengths
2
152
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
null
ceph-main/src/rgw/rgw_obj_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...
15,543
23.950241
133
h
null
ceph-main/src/rgw/rgw_object_expirer.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 <iostream> #include <sstream> #include <string> #include "auth/Crypto.h" #include "common/armor.h" #include "common/ceph_json.h" #include "common/config.h" #include "common/ceph_argpa...
2,403
21.46729
118
cc
null
ceph-main/src/rgw/rgw_object_lock.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp // #include "rgw_object_lock.h" using namespace std; void DefaultRetention::decode_xml(XMLObj *obj) { RGWXMLDecoder::decode_xml("Mode", mode, obj, true); if (mode.compare("GOVERNANCE") != 0 && mode.compare("CO...
3,059
29
88
cc
null
ceph-main/src/rgw/rgw_object_lock.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/ceph_time.h" #include "common/iso_8601.h" #include "rgw_xml.h" class DefaultRetention { protected: std::string mode; int days; int years; public: DefaultRe...
4,534
19.336323
104
h
null
ceph-main/src/rgw/rgw_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 <ctime> #include <regex> #include "common/errno.h" #include "common/Formatter.h" #include "common/ceph_json.h" #include "common/ceph_time.h" #include "rgw_rados.h" #include "rgw_zone.h"...
4,483
23.502732
99
cc
null
ceph-main/src/rgw/rgw_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 <string> #include "common/ceph_context.h" #include "common/ceph_json.h" #include "rgw/rgw_sal.h" namespace rgw { namespace sal { class RGWOIDCProvider { public: static const std::string...
3,650
28.92623
127
h
null
ceph-main/src/rgw/rgw_op.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 <stdlib.h> #include <system_error> #include <unistd.h> #include <sstream> #include <string_view> #include <boost/algorithm/string/predicate.hpp> #include <boost/optional.hpp> #include ...
282,319
30.445756
178
cc
null
ceph-main/src/rgw/rgw_op.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /** * All operations via the rados gateway are carried out by * small classes known as RGWOps. This class contains a req_state * and each possible command is a subclass of this with a defined * execute() method...
80,195
29.002245
138
h
null
ceph-main/src/rgw/rgw_op_type.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once enum RGWOpType { RGW_OP_UNKNOWN = 0, RGW_OP_GET_OBJ, RGW_OP_LIST_BUCKETS, RGW_OP_STAT_ACCOUNT, RGW_OP_LIST_BUCKET, RGW_OP_GET_BUCKET_LOGGING, RGW_OP_GET_BUCKET_LOCATION, RGW_OP_GET_BUC...
3,479
24.970149
70
h
null
ceph-main/src/rgw/rgw_opa.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_opa.h" #include "rgw_http_client.h" #define dout_context g_ceph_context #define dout_subsys ceph_subsys_rgw using namespace std; int rgw_opa_authorize(RGWOp *& op, req_state *...
2,787
27.44898
71
cc
null
ceph-main/src/rgw/rgw_opa.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_op.h" /* authorize request using OPA */ int rgw_opa_authorize(RGWOp*& op, req_state* s);
270
21.583333
70
h
null
ceph-main/src/rgw/rgw_orphan.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 "common/config.h" #include "common/Formatter.h" #include "common/errno.h" #include "rgw_op.h" #include "rgw_multi.h" #include "rgw_orphan.h" #include "rgw_zone.h" #include "rgw_bucket....
46,918
28.342714
146
cc
null
ceph-main/src/rgw/rgw_orphan.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 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ve...
8,950
28.347541
178
h
null
ceph-main/src/rgw/rgw_os_lib.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.h" #include "rgw_rest_s3.h" #include "rgw_rest_user.h" #include "rgw_os_lib.h" #include "rgw_file.h" #include "rgw_lib_frontend.h" namespace rgw { /* static */ int RGWHandler_Lib::init_from_h...
1,415
21.125
93
cc
null
ceph-main/src/rgw/rgw_os_lib.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 <functional> #include "rgw_common.h" #include "rgw_lib.h"
188
17.9
70
h
null
ceph-main/src/rgw/rgw_perf_counters.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_perf_counters.h" #include "common/perf_counters.h" #include "common/ceph_context.h" PerfCounters *perfcounter = NULL; int rgw_perf_start(CephContext *cct) { PerfCountersBuilder plb(cct, "rgw", l_...
3,837
47.582278
143
cc
null
ceph-main/src/rgw/rgw_perf_counters.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 "include/common_fwd.h" extern PerfCounters *perfcounter; extern int rgw_perf_start(CephContext *cct); extern void rgw_perf_stop(CephContext *cct); enum { l_rgw_first = 15000, l_rgw_req...
1,101
17.065574
70
h
null
ceph-main/src/rgw/rgw_period.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" using namespace std; using namespace rgw_zone_defaults; std::string period_latest_epoch_info_oid = ".latest_epoch"; std::string period_info_oid_prefix = "periods."; #define FIRST_EPOCH 1 i...
9,923
27.273504
133
cc
null
ceph-main/src/rgw/rgw_period_history.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_period_history.h" #include "rgw_zone.h" #include "include/ceph_assert.h" #define dout_subsys ceph_subsys_rgw #undef dout_prefix #define dout_prefix (*_dout << "rgw period history: ") /// an ordere...
10,999
29.812325
106
cc
null
ceph-main/src/rgw/rgw_period_history.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 <deque> #include <mutex> #include <system_error> #include <boost/intrusive/avl_set.hpp> #include "include/ceph_assert.h" #include "include/types.h" #include "common/async/yield_context.h" #in...
3,694
31.130435
100
h
null
ceph-main/src/rgw/rgw_period_puller.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_rados.h" #include "rgw_zone.h" #include "rgw_rest_conn.h" #include "common/ceph_json.h" #include "common/errno.h" #include "services/svc_zone.h" #define dout_subsys ceph_subsys_rgw #undef dout_pref...
3,559
27.709677
105
cc
null
ceph-main/src/rgw/rgw_period_puller.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_period_history.h" #include "include/common_fwd.h" #include "rgw/services/svc_sys_obj.h" class RGWPeriod; class RGWPeriodPuller : public RGWPeriodHistory::Puller { CephContext *cct; ...
597
22.92
118
h
null
ceph-main/src/rgw/rgw_period_pusher.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 <thread> #include "rgw_period_pusher.h" #include "rgw_cr_rest.h" #include "rgw_zone.h" #include "rgw_sal.h" #include "rgw_sal_rados.h" #include "services/svc_zone.h" #include "common/errn...
9,760
29.791798
129
cc
null
ceph-main/src/rgw/rgw_period_pusher.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 <memory> #include <mutex> #include <vector> #include "common/async/yield_context.h" #include "rgw_realm_reloader.h" #include "rgw_sal_fwd.h" class RGWPeriod; // RGWRealmNotify payload for ...
1,796
31.672727
102
h
null
ceph-main/src/rgw/rgw_placement_types.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 "common/Formatter.h" static std::string RGW_STORAGE_CLASS_STANDARD = "STANDARD"; struct rgw_placement_rule { std::string name; std::strin...
2,739
22.02521
101
h
null
ceph-main/src/rgw/rgw_policy_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 "common/ceph_json.h" #include "rgw_policy_s3.h" #include "rgw_common.h" #include "rgw_crypt_sanitize.h" #define dout_context g_ceph_context #define dout_subsys ceph_subsys_rgw using n...
8,222
25.872549
106
cc
null
ceph-main/src/rgw/rgw_policy_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 <limits.h> #include <map> #include <list> #include <string> #include "include/utime.h" #include "rgw_string.h" class RGWPolicyEnv { std::map<std::string, std::string, ltstr_nocase> var...
1,557
25.862069
118
h
null
ceph-main/src/rgw/rgw_polparser.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <cstdint> #include <cstdlib> #include <exception> #include <fstream> #include <iostream> #include <string> #include <string_view> #include "include/buffer.h" #include "common/ceph_argparse.h" #include "common/...
2,541
22.981132
80
cc
null
ceph-main/src/rgw/rgw_pool_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,886
23.601266
86
h
null
ceph-main/src/rgw/rgw_process.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/errno.h" #include "common/Throttle.h" #include "common/WorkQueue.h" #include "include/scope_guard.h" #include <utility> #include "rgw_auth_registry.h" #include "rgw_dmclock_scheduler.h" #include "...
15,078
30.879493
131
cc
null
ceph-main/src/rgw/rgw_process.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_acl.h" #include "rgw_user.h" #include "rgw_rest.h" #include "include/ceph_assert.h" #include "common/WorkQueue.h" #include "common/Throttle.h" #include <atomic>...
4,523
27.275
96
h
null
ceph-main/src/rgw/rgw_process_env.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 <memory> class ActiveRateLimiter; class OpsLogSink; class RGWREST; namespace rgw { class SiteConfig; } namespace rgw::auth { class StrategyRegistry; } namespace rgw::lua { class Backg...
1,207
20.192982
70
h
null
ceph-main/src/rgw/rgw_public_access.cc
#include "rgw_public_access.h" #include "rgw_xml.h" void PublicAccessBlockConfiguration::decode_xml(XMLObj *obj) { RGWXMLDecoder::decode_xml("BlockPublicAcls", BlockPublicAcls, obj); RGWXMLDecoder::decode_xml("IgnorePublicAcls", IgnorePublicAcls, obj); RGWXMLDecoder::decode_xml("BlockPublicPolicy", BlockPublicPo...
1,425
40.941176
94
cc
null
ceph-main/src/rgw/rgw_public_access.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 SUSE LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License v...
1,762
24.926471
95
h
null
ceph-main/src/rgw/rgw_pubsub.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "services/svc_zone.h" #include "rgw_b64.h" #include "rgw_sal.h" #include "rgw_pubsub.h" #include "rgw_tools.h" #include "rgw_xml.h" #include "rgw_arn.h" #include "rgw_pubsub_push.h" #include <regex> #inclu...
23,809
31.306649
143
cc
null
ceph-main/src/rgw/rgw_pubsub.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_sal.h" #include "rgw_tools.h" #include "rgw_zone.h" #include "rgw_notify_event_type.h" #include <boost/container/flat_map.hpp> class XMLObj; struct rgw_s3_key_filter { std::string pr...
19,178
29.442857
155
h
null
ceph-main/src/rgw/rgw_putobj.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) 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 * Lice...
2,219
21.2
70
cc
null
ceph-main/src/rgw/rgw_putobj.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) 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 * Lice...
2,040
26.581081
76
h
null
ceph-main/src/rgw/rgw_quota.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 Inktank, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
34,487
31.845714
164
cc
null
ceph-main/src/rgw/rgw_quota.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 Inktank, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
1,751
34.04
143
h
null
ceph-main/src/rgw/rgw_quota_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) 2013 Inktank, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
2,086
22.715909
77
h
null
ceph-main/src/rgw/rgw_ratelimit.h
#pragma once #include <chrono> #include <thread> #include <condition_variable> #include "rgw_common.h" class RateLimiterEntry { /* fixed_point_rgw_ratelimit is important to preserve the precision of the token calculation for example: a user have a limit of single op per minute, the user will consume its si...
10,868
36.095563
232
h
null
ceph-main/src/rgw/rgw_realm.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_realm_watcher.h" #include "rgw_meta_sync_status.h" #include "rgw_sal_config.h" #include "rgw_string.h" #include "rgw_sync.h" #inc...
7,309
26.481203
114
cc
null
ceph-main/src/rgw/rgw_realm_reloader.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_realm_reloader.h" #include "rgw_auth_registry.h" #include "rgw_bucket.h" #include "rgw_log.h" #include "rgw_rest.h" #include "rgw_user.h" #include "rgw_process_env.h" #include "rgw_sal.h" #include "r...
6,092
30.734375
100
cc
null
ceph-main/src/rgw/rgw_realm_reloader.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_realm_watcher.h" #include "common/Cond.h" #include "rgw_sal_fwd.h" struct RGWProcessEnv; namespace rgw::auth { class ImplicitTenants; } /** * RGWRealmReloader responds to new period n...
2,253
33.676923
85
h
null
ceph-main/src/rgw/rgw_realm_watcher.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/errno.h" #include "rgw_realm_watcher.h" #include "rgw_tools.h" #include "rgw_zone.h" #define dout_subsys ceph_subsys_rgw #undef dout_prefix #define dout_prefix (*_dout << "rgw realm watcher: ") ...
3,845
24.812081
104
cc
null
ceph-main/src/rgw/rgw_realm_watcher.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 "include/rados/librados.hpp" #include "include/ceph_assert.h" #include "common/Timer.h" #include "common/Cond.h" class RGWRados; class RGWRealm; enum class RGWRealmNotify { Reload, Zone...
1,909
27.507463
90
h
null
ceph-main/src/rgw/rgw_request.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_acl.h" #include "rgw_user.h" #include "rgw_op.h" #include "common/QueueRing.h" #include <atomic> struct RGWRequest { uint64_t id; req_state *s; RGWOp *op...
851
19.780488
89
h
null
ceph-main/src/rgw/rgw_resolve.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> #include "acconfig.h" #ifdef HAVE_ARPA_NAMESER_COMPAT_H #include <arpa/nameser_compat.h> #endif #include "rgw_common.h...
860
17.717391
84
cc
null
ceph-main/src/rgw/rgw_resolve.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" namespace ceph { class DNSResolver; } class RGWResolver { DNSResolver *resolver; public: ~RGWResolver(); RGWResolver(); int resolve_cname(const std::string& hostna...
475
18.04
82
h
null
ceph-main/src/rgw/rgw_rest.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 <limits.h> #include <boost/algorithm/string.hpp> #include <boost/tokenizer.hpp> #include "ceph_ver.h" #include "common/Formatter.h" #include "common/HTMLFormatter.h" #include "common/u...
62,640
25.873016
137
cc
null
ceph-main/src/rgw/rgw_rest.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/container/flat_set.hpp> #include "common/sstring.hh" #include "common/ceph_json.h" #include "include/ceph_assert.h" /* needed because ...
24,416
28.776829
120
h
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