repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
null
ceph-main/src/rgw/rgw_keystone.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 <atomic> #include <string_view> #include <type_traits> #include <utility> #include <boost/optional.hpp> #include "rgw_common.h" #include "rgw_http_client.h" #include "common/ceph_mutex.h" #...
9,715
27.162319
99
h
null
ceph-main/src/rgw/rgw_kmip_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 class RGWKMIPManager; class RGWKMIPTransceiver { public: enum kmip_operation { CREATE, LOCATE, GET, GET_ATTRIBUTES, GET_ATTRIBUTE_LIST, DESTROY }; CephContext *cct; km...
1,404
20.287879
70
h
null
ceph-main/src/rgw/rgw_kmip_client_impl.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once struct RGWKmipWorker; class RGWKMIPManagerImpl: public RGWKMIPManager { protected: ceph::mutex lock = ceph::make_mutex("RGWKMIPManager"); ceph::condition_variable cond; struct Request : boost::...
874
30.25
73
h
null
ceph-main/src/rgw/rgw_kms.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /** * Server-side encryption integrations with Key Management Systems (SSE-KMS) */ #pragma once #include <string> static const std::string RGW_SSE_KMS_BACKEND_TESTING = "testing"; static const std::string RGW_SSE_KMS...
2,533
37.984615
107
h
null
ceph-main/src/rgw/rgw_lc.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 <array> #include <string> #include <iostream> #include "common/debug.h" #include "include/types.h" #include "include/rados/librados.hpp" #include "common/ceph_mutex.h" #inclu...
15,484
23.157566
102
h
null
ceph-main/src/rgw/rgw_ldap.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 "acconfig.h" #if defined(HAVE_OPENLDAP) #define LDAP_DEPRECATED 1 #include "ldap.h" #endif #include <stdint.h> #include <tuple> #include <vector> #include <string> #include <iostream> #incl...
3,195
21.992806
99
h
null
ceph-main/src/rgw/rgw_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 <mutex> #include "rgw_common.h" #include "rgw_client_io.h" #include "rgw_rest.h" #include "rgw_request.h" #include "rgw_ldap.h" #include "include/ceph_assert.h" #include "rgw_main.h" class O...
5,465
25.028571
93
h
null
ceph-main/src/rgw/rgw_lib_frontend.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 <boost/container/flat_map.hpp> #include "rgw_lib.h" #include "rgw_file.h" namespace rgw { class RGWLibProcess : public RGWProcess { RGWAccessKey access_key; std::mutex mtx; s...
3,015
25.45614
111
h
null
ceph-main/src/rgw/rgw_loadgen.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 "rgw_client_io.h" struct RGWLoadGenRequestEnv { int port; uint64_t content_length; std::string content_type; std::string request_method; std::str...
1,697
22.260274
70
h
null
ceph-main/src/rgw/rgw_log.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 <boost/container/flat_map.hpp> #include "rgw_common.h" #include "common/OutputDataSocket.h" #include <vector> #include <fstream> #include "rgw_sal_fwd.h" class RGWOp; struct delete_multi_ob...
7,535
24.986207
98
h
null
ceph-main/src/rgw/rgw_lua_background.h
#pragma once #include "common/dout.h" #include "rgw_common.h" #include <string> #include <unordered_map> #include <variant> #include "rgw_lua_utils.h" #include "rgw_realm_reloader.h" namespace rgw::lua { //Interval between each execution of the script is set to 5 seconds constexpr const int INIT_EXECUTE_INTERVAL = 5;...
5,848
29.784211
104
h
null
ceph-main/src/rgw/rgw_main.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...
3,556
24.407143
94
h
null
ceph-main/src/rgw/rgw_meta_sync_status.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" struct rgw_meta_sync_info { enum SyncState { StateInit = 0, StateBuildingFullSyncMaps = 1, StateSync = 2, }; uint16_t state; uint...
2,955
23.229508
76
h
null
ceph-main/src/rgw/rgw_multi.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 "rgw_xml.h" #include "rgw_obj_types.h" #include "rgw_obj_manifest.h" #include "rgw_compression_types.h" #include "common/dout.h" #include "rgw_sal_fwd.h" #define MULTIPART_UPL...
1,368
20.730159
110
h
null
ceph-main/src/rgw/rgw_notify_event_type.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> #include <vector> namespace rgw::notify { enum EventType { ObjectCreated = 0xF, ObjectCreatedPut = 0x1, ObjectCreatedPost ...
1,803
35.08
83
h
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_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_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_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.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.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.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_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.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.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_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_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_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.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_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_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_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.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.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.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_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.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_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.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.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.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_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_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.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.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.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_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_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_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.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_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.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_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_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.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.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_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.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.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/dbstore/dbstore_mgr.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <map> #include <cerrno> #include <cstdlib> #include <string> #include <cstdio> #include <iostream> #include <vector> #include "common/ceph_context.h" #include "common/dbstore.h" #include "sqlite/sq...
1,524
25.754386
90
h
null
ceph-main/src/rgw/driver/dbstore/common/connection_pool.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...
4,665
30.527027
80
h
null
ceph-main/src/rgw/driver/dbstore/config/sqlite.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...
8,134
46.023121
85
h
null
ceph-main/src/rgw/driver/dbstore/config/sqlite_schema.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...
9,244
29.816667
78
h
null
ceph-main/src/rgw/driver/dbstore/config/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...
671
23
79
h
null
ceph-main/src/rgw/driver/dbstore/sqlite/connection.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...
1,485
21.861538
70
h
null
ceph-main/src/rgw/driver/dbstore/sqlite/error.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...
2,348
27.646341
80
h
null
ceph-main/src/rgw/driver/dbstore/sqlite/statement.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...
3,020
33.329545
79
h
null
ceph-main/src/rgw/driver/immutable_config/store.h
// 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 * License version 2.1, as published by the Free Software * Foundation. See f...
9,431
51.110497
88
h
null
ceph-main/src/rgw/driver/json_config/store.h
// 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 * License version 2.1, as published by the Free Software * Foundation. See f...
707
24.285714
78
h
null
ceph-main/src/rgw/driver/rados/rgw_cr_tools.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_cr_rados.h" #include "rgw_tools.h" #include "rgw_lc.h" #include "services/svc_bucket_sync.h" struct rgw_user_create_params { rgw_user user; std::string display_name; std::string ...
2,214
24.755814
127
h
null
ceph-main/src/rgw/driver/rados/rgw_datalog.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 <cstdint> #include <list> #include <memory> #include <string> #include <string_view> #include <variant> #include <vector> #include <boost/container/flat_map.hpp> #include <boost/container/fl...
11,839
28.89899
111
h
null
ceph-main/src/rgw/driver/rados/rgw_datalog_notify.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 <boost/container/flat_map.hpp> #include <boost/container/flat_set.hpp> #include "rgw_datalog.h" namespace bc = boost::container; namespace ceph { class Formatter; } class JSONObj; class R...
845
25.4375
71
h
null
ceph-main/src/rgw/driver/rados/rgw_etag_verifier.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * RGW Etag Verifier is an RGW filter which enables the objects copied using * multisite sync to be verified using their ETag from source i.e. the MD5 * checksum of the object is computed at the destination an...
2,817
29.967033
81
h
null
ceph-main/src/rgw/driver/rados/rgw_lc_tier.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_lc.h" #include "rgw_rest_conn.h" #include "rgw_rados.h" #include "rgw_zone.h" #include "rgw_sal_rados.h" #include "rgw_cr_rest.h" #define DEFAULT_MULTIPART_SYNC_PART_SIZE (32 * 1024 * 1...
1,521
28.269231
102
h
null
ceph-main/src/rgw/driver/rados/rgw_log_backing.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 <optional> #include <iostream> #include <string> #include <string_view> #include <strings.h> #include <boost/container/flat_map.hpp> #include <boost/system/error_code.hpp> #include <fmt/fo...
11,255
27.496203
111
h
null
ceph-main/src/rgw/driver/rados/rgw_object_expirer_core.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 <atomic> #include <string> #include <cerrno> #include <sstream> #include <iostream> #include "auth/Crypto.h" #include "common/armor.h" #include "common/ceph_json.h" #include "common/config....
4,865
32.102041
134
h
null
ceph-main/src/rgw/driver/rados/rgw_otp.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_fwd.h" #include "cls/otp/cls_otp_types.h" #include "services/svc_meta_be_otp.h" #include "rgw_basic_types.h" #include "rgw_metadata.h" class RGWObjVersionTracker; class RGWMetadat...
2,559
22.063063
75
h
null
ceph-main/src/rgw/driver/rados/rgw_pubsub_push.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 <memory> #include <stdexcept> #include "include/buffer_fwd.h" #include "include/common_fwd.h" #include "common/async/yield_context.h" // TODO the env should be used as a tem...
1,776
36.020833
126
h
null
ceph-main/src/rgw/driver/rados/rgw_putobj_processor.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...
10,568
36.34629
93
h
null
ceph-main/src/rgw/driver/rados/rgw_rest_bucket.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_Bucket : public RGWHandler_Auth_S3 { protected: RGWOp *op_get() override; RGWOp *op_put() override; RGWOp *op_post() override; ...
941
24.459459
80
h
null
ceph-main/src/rgw/driver/rados/rgw_rest_log.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...
9,229
26.307692
88
h
null
ceph-main/src/rgw/driver/rados/rgw_rest_pubsub.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "rgw_rest_s3.h" // s3 compliant notification handler factory class RGWHandler_REST_PSNotifs_S3 : public RGWHandler_REST_S3 { protected: int init_permissions(RGWOp* op, optional_yield y) override {...
1,405
35.051282
87
h
null
ceph-main/src/rgw/driver/rados/rgw_rest_user.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_User : public RGWHandler_Auth_S3 { protected: RGWOp *op_get() override; RGWOp *op_put() override; RGWOp *op_post() override; R...
927
24.081081
80
h
null
ceph-main/src/rgw/driver/rados/rgw_service.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 <vector> #include <memory> #include "common/async/yield_context.h" #include "rgw_common.h" struct RGWServices_Def; class RGWServiceInstance { friend struct RGWServices...
5,845
26.064815
131
h
null
ceph-main/src/rgw/driver/rados/rgw_sync_error_repo.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 * Licen...
1,892
30.55
70
h
null
ceph-main/src/rgw/driver/rados/rgw_sync_module_es_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 #include "rgw_rest.h" class RGWElasticSyncModuleInstance; class RGWRESTMgr_MDSearch_S3 : public RGWRESTMgr { public: explicit RGWRESTMgr_MDSearch_S3() {} RGWHandler_REST *get_handler(rgw::sal::...
521
26.473684
80
h
null
ceph-main/src/rgw/driver/rados/rgw_sync_trace.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 <atomic> #include "common/ceph_mutex.h" #include "common/shunique_lock.h" #include "common/admin_socket.h" #include <set> #include <ostream> #include <string> #include <shared_mutex> #inclu...
3,267
22.014085
93
h
null
ceph-main/src/rgw/driver/rados/rgw_trim_bilog.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) 2017 Red Hat, Inc * * Author: Casey Bodley <cbodley@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the...
3,920
31.139344
82
h
null
ceph-main/src/rgw/driver/rados/rgw_trim_datalog.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 <vector> #include "common/dout.h" class RGWCoroutine; class RGWRados; class RGWHTTPManager; class utime_t; namespace rgw { namespace sal { class RadosStore; } } // Data...
965
32.310345
104
h
null
ceph-main/src/rgw/driver/rados/rgw_trim_mdlog.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once class RGWCoroutine; class DoutPrefixProvider; class RGWRados; class RGWHTTPManager; class utime_t; namespace rgw { namespace sal { class RadosStore; } } // MetaLogTrimCR factory function RGWCorouti...
908
33.961538
74
h
null
ceph-main/src/rgw/driver/rados/sync_fairness.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...
1,584
28.351852
79
h
null
ceph-main/src/rgw/driver/rados/config/impl.h
// 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 * License version 2.1, as published by the Free Software * Foundation. See f...
4,066
28.05
78
h
null
ceph-main/src/rgw/driver/rados/config/store.h
// 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 * License version 2.1, as published by the Free Software * Foundation. See f...
9,218
49.377049
93
h
null
ceph-main/src/rgw/jwt-cpp/base.h
#pragma once #include <string> #include <array> namespace jwt { namespace alphabet { struct base64 { static const std::array<char, 64>& data() { static std::array<char, 64> data = { {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', ...
5,000
28.591716
117
h
null
ceph-main/src/rgw/services/svc_bucket.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 * Lic...
5,165
45.125
134
h