summaryrefslogtreecommitdiff
path: root/src/rgw/rgw_rest_usage.h
blob: a6eb3d57200f02db505ba7144011b841265e6aa2 (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
27
28
29
30
31
32
#ifndef CEPH_RGW_REST_USAGE_H
#define CEPH_RGW_REST_USAGE_H

#include "rgw_rest.h"
#include "rgw_rest_s3.h"


class RGWHandler_Usage : public RGWHandler_Auth_S3 {
protected:
  RGWOp *op_get();
  RGWOp *op_delete();
public:
  RGWHandler_Usage() {}
  virtual ~RGWHandler_Usage() {}

  int read_permissions(RGWOp*) {
    return 0;
  }
};

class RGWRESTMgr_Usage : public RGWRESTMgr {
public:
  RGWRESTMgr_Usage() {}
  virtual ~RGWRESTMgr_Usage() {}

  RGWHandler *get_handler(struct req_state *s) {
    return new RGWHandler_Usage;
  }
};


#endif