mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
ceph-dencoder: add RGWRealm support.
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
This commit is contained in:
parent
b4aa2af446
commit
6fb5e7b243
@ -456,6 +456,20 @@ void RGWZone::generate_test_instances(list<RGWZone*> &o)
|
||||
o.push_back(new RGWZone);
|
||||
}
|
||||
|
||||
void RGWRealm::generate_test_instances(list<RGWRealm*> &o)
|
||||
{
|
||||
RGWRealm *z = new RGWRealm;
|
||||
o.push_back(z);
|
||||
o.push_back(new RGWRealm);
|
||||
}
|
||||
|
||||
void RGWPeriod::generate_test_instances(list<RGWPeriod*> &o)
|
||||
{
|
||||
RGWPeriod *z = new RGWPeriod;
|
||||
o.push_back(z);
|
||||
o.push_back(new RGWPeriod);
|
||||
}
|
||||
|
||||
void RGWZoneParams::generate_test_instances(list<RGWZoneParams*> &o)
|
||||
{
|
||||
o.push_back(new RGWZoneParams);
|
||||
|
@ -773,6 +773,7 @@ public:
|
||||
|
||||
void dump(Formatter *f) const;
|
||||
void decode_json(JSONObj *obj);
|
||||
static void generate_test_instances(list<RGWRealm*>& o);
|
||||
|
||||
const std::string& get_current_period() const {
|
||||
return current_period;
|
||||
@ -971,6 +972,7 @@ public:
|
||||
}
|
||||
void dump(Formatter *f) const;
|
||||
void decode_json(JSONObj *obj);
|
||||
static void generate_test_instances(list<RGWPeriod*>& o);
|
||||
|
||||
static std::string get_staging_id(const std::string& realm_id) {
|
||||
return realm_id + ":staging";
|
||||
|
@ -346,6 +346,8 @@ TYPE(RGWObjManifest)
|
||||
TYPE(RGWZoneParams)
|
||||
TYPE(RGWZone)
|
||||
TYPE(RGWZoneGroup)
|
||||
TYPE(RGWRealm)
|
||||
TYPE(RGWPeriod)
|
||||
|
||||
#include "rgw/rgw_acl.h"
|
||||
TYPE(ACLPermission)
|
||||
|
Loading…
Reference in New Issue
Block a user