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