// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
-// vim: ts=8 sw=2 smarttab
+// vim: ts=8 sw=2 smarttab ft=cpp
#ifndef CEPH_RGW_AUTH_REGISTRY_H
s3_main_strategy_plain_t s3_main_strategy_plain;
s3_main_strategy_boto2_t s3_main_strategy_boto2;
- s3_main_strategy_t(CephContext* const cct, RGWRados* const store)
- : s3_main_strategy_plain(cct, store),
- s3_main_strategy_boto2(cct, store) {
+ s3_main_strategy_t(CephContext* const cct,
+ ImplicitTenants& implicit_tenant_context,
+ RGWCtl* const ctl)
+ : s3_main_strategy_plain(cct, implicit_tenant_context, ctl),
+ s3_main_strategy_boto2(cct, implicit_tenant_context, ctl) {
add_engine(Strategy::Control::SUFFICIENT, s3_main_strategy_plain);
add_engine(Strategy::Control::FALLBACK, s3_main_strategy_boto2);
}
public:
StrategyRegistry(CephContext* const cct,
- RGWRados* const store)
- : s3_main_strategy(cct, store),
- s3_post_strategy(cct, store),
- swift_strategy(cct, store),
- sts_strategy(cct, store) {
+ ImplicitTenants& implicit_tenant_context,
+ RGWCtl* const ctl)
+ : s3_main_strategy(cct, implicit_tenant_context, ctl),
+ s3_post_strategy(cct, implicit_tenant_context, ctl),
+ swift_strategy(cct, implicit_tenant_context, ctl),
+ sts_strategy(cct, implicit_tenant_context, ctl) {
}
const s3_main_strategy_t& get_s3_main() const {
static std::shared_ptr<StrategyRegistry>
create(CephContext* const cct,
- RGWRados* const store) {
- return std::make_shared<StrategyRegistry>(cct, store);
+ ImplicitTenants& implicit_tenant_context,
+ RGWCtl* const ctl) {
+ return std::make_shared<StrategyRegistry>(cct, implicit_tenant_context, ctl);
}
};