summaryrefslogtreecommitdiffstats
path: root/src/rgw/driver/rados/rgw_otp.h
blob: 72b64d27fd4fc1762187cba69116072db117feb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// -*- 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 <string>

struct rgw_user;
class RGWMetadataHandler;
class RGWSI_Cls;
class RGWSI_MDLog;
class RGWSI_SysObj;
class RGWZoneParams;

namespace rgwrados::otp {

// return the user's otp metadata key
std::string get_meta_key(const rgw_user& user);

// otp metadata handler factory
auto create_metadata_handler(RGWSI_SysObj& sysobj, RGWSI_Cls& cls,
                             RGWSI_MDLog& mdlog, const RGWZoneParams& zone)
    -> std::unique_ptr<RGWMetadataHandler>;

} // namespace rgwrados::otp