]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: incremental rgw_rest_lib internals
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 25 Sep 2015 18:27:09 +0000 (14:27 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 16:58:04 +0000 (11:58 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_rest_lib.cc
src/rgw/rgw_rest_lib.h

index daeb862fb586e0e72c7b05bbafafb6f128808eee..1b53cfbd183aa43ceea9efc8153327a304110393 100644 (file)
@@ -10,3 +10,4 @@ RGWHandler* RGWRESTMgr_Lib::get_handler(struct req_state* s)
 {
   return get_handler(s);
 }
+
index a5b34998b6c5eefdafe74c2b68fa050a2fe3a423..375109fd9a64a76bfc2d6508ea16e19871792f61 100644 (file)
@@ -10,13 +10,38 @@ public:
   RGWRESTMgr_Lib() {}
   virtual ~RGWRESTMgr_Lib() {}
   virtual RGWHandler* get_handler(struct req_state* s);
-};
+}; /* RGWRESTMgr_Lib */
 
 class RGWHandler_ObjStore_Lib : public RGWHandler_User {
   friend class RGWRESTMgr_Lib;
 public:
   RGWHandler_ObjStore_Lib() {}
   virtual ~RGWHandler_ObjStore_Lib() {}
-};
+}; /* RGWHandler_ObjStore_Lib */
+
+class RGWListBuckets_ObjStore_Lib : public RGWListBuckets_ObjStore {
+public:
+  RGWListBuckets_ObjStore_Lib() {}
+  ~RGWListBuckets_ObjStore_Lib() {}
+
+  int get_params() {
+    limit = -1; /* no limit */
+    return 0;
+  }
+}; /* RGWListBuckets_ObjStore_Lib */
+
+class RGWListBucket_ObjStore_Lib : public RGWListBucket_ObjStore {
+public:
+  RGWListBucket_ObjStore_Lib() {
+    default_max = 1000;
+  }
+  ~RGWListBucket_ObjStore_Lib() {}
+}; /* RGWListBucket_ObjStore_Lib */
+
+class RGWGetBucketLogging_ObjStore_Lib : public RGWGetBucketLogging {
+public:
+  RGWGetBucketLogging_ObjStore_Lib() {}
+  ~RGWGetBucketLogging_ObjStore_Lib() {}
+}; /* RGWGetBucketLogging_ObjStore_Lib */
 
 #endif /* CEPH_RGW_REST_LIB_H */