]> git.proxmox.com Git - ceph.git/blame - ceph/src/rgw/rgw_rest_usage.h
update sources to v12.2.1
[ceph.git] / ceph / src / rgw / rgw_rest_usage.h
CommitLineData
7c673cae
FG
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_USAGE_H
5#define CEPH_RGW_REST_USAGE_H
6
7#include "rgw_rest.h"
8#include "rgw_rest_s3.h"
9
10
11class RGWHandler_Usage : public RGWHandler_Auth_S3 {
12protected:
13 RGWOp *op_get() override;
14 RGWOp *op_delete() override;
15public:
16 using RGWHandler_Auth_S3::RGWHandler_Auth_S3;
17 ~RGWHandler_Usage() override = default;
18
19 int read_permissions(RGWOp*) override {
20 return 0;
21 }
22};
23
24class RGWRESTMgr_Usage : public RGWRESTMgr {
25public:
26 RGWRESTMgr_Usage() = default;
27 ~RGWRESTMgr_Usage() override = default;
28
29 RGWHandler_REST* get_handler(struct req_state*,
30 const rgw::auth::StrategyRegistry& auth_registry,
31 const std::string&) override {
32 return new RGWHandler_Usage(auth_registry);
33 }
34};
35
36#endif