]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_sync_module_es.h
update sources to v12.1.0
[ceph.git] / ceph / src / rgw / rgw_sync_module_es.h
1 #ifndef CEPH_RGW_SYNC_MODULE_ES_H
2 #define CEPH_RGW_SYNC_MODULE_ES_H
3
4 #include "rgw_sync_module.h"
5
6 class RGWElasticSyncModule : public RGWSyncModule {
7 public:
8 RGWElasticSyncModule() {}
9 bool supports_data_export() override {
10 return false;
11 }
12 int create_instance(CephContext *cct, map<string, string, ltstr_nocase>& config, RGWSyncModuleInstanceRef *instance) override;
13 };
14
15 class RGWElasticDataSyncModule;
16 class RGWRESTConn;
17
18 class RGWElasticSyncModuleInstance : public RGWSyncModuleInstance {
19 std::unique_ptr<RGWElasticDataSyncModule> data_handler;
20 public:
21 RGWElasticSyncModuleInstance(CephContext *cct, const std::map<std::string, std::string, ltstr_nocase>& config);
22 RGWDataSyncModule *get_data_handler() override;
23 RGWRESTMgr *get_rest_filter(int dialect, RGWRESTMgr *orig) override;
24 RGWRESTConn *get_rest_conn();
25 std::string get_index_path();
26 };
27
28 #endif