]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_rest_user.h
update sources to v12.1.1
[ceph.git] / ceph / src / rgw / rgw_rest_user.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
3
4 #ifndef CEPH_RGW_REST_USER_H
5 #define CEPH_RGW_REST_USER_H
6
7 #include "rgw_rest.h"
8 #include "rgw_rest_s3.h"
9
10
11 class RGWHandler_User : public RGWHandler_Auth_S3 {
12 protected:
13 RGWOp *op_get() override;
14 RGWOp *op_put() override;
15 RGWOp *op_post() override;
16 RGWOp *op_delete() override;
17 public:
18 using RGWHandler_Auth_S3::RGWHandler_Auth_S3;
19 ~RGWHandler_User() override = default;
20
21 int read_permissions(RGWOp*) override {
22 return 0;
23 }
24 };
25
26 class RGWRESTMgr_User : public RGWRESTMgr {
27 public:
28 RGWRESTMgr_User() = default;
29 ~RGWRESTMgr_User() override = default;
30
31 RGWHandler_REST *get_handler(struct req_state*,
32 const rgw::auth::StrategyRegistry& auth_registry,
33 const std::string&) override {
34 return new RGWHandler_User(auth_registry);
35 }
36 };
37
38 #endif