]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_rest_info.h
bump version to 18.2.2-pve1
[ceph.git] / ceph / src / rgw / rgw_rest_info.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab ft=cpp
3
4 #pragma once
5
6 #include "rgw_rest.h"
7 #include "rgw_rest_s3.h"
8
9
10 class RGWHandler_Info : public RGWHandler_Auth_S3 {
11 protected:
12 RGWOp *op_get() override;
13 public:
14 using RGWHandler_Auth_S3::RGWHandler_Auth_S3;
15 ~RGWHandler_Info() override = default;
16
17 int read_permissions(RGWOp*, optional_yield) override {
18 return 0;
19 }
20 };
21
22 class RGWRESTMgr_Info : public RGWRESTMgr {
23 public:
24 RGWRESTMgr_Info() = default;
25 ~RGWRESTMgr_Info() override = default;
26
27 RGWHandler_REST* get_handler(rgw::sal::Driver* driver,
28 req_state*,
29 const rgw::auth::StrategyRegistry& auth_registry,
30 const std::string&) override {
31 return new RGWHandler_Info(auth_registry);
32 }
33 };