summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_common.h
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2023-12-17 21:03:53 +0100
committerCasey Bodley <cbodley@redhat.com>2024-04-10 19:09:14 +0200
commitde9feeb32ca71c67b29e753c3164cd778c08c280 (patch)
treed55eb6b96cc4111167118310abbd91a972eca62f /src/rgw/rgw_common.h
parenttest/cls: add ceph_test_cls_user (diff)
downloadceph-de9feeb32ca71c67b29e753c3164cd778c08c280.tar.xz
ceph-de9feeb32ca71c67b29e753c3164cd778c08c280.zip
rgw/iam: add iam user metadata (path, create_date, tags)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/rgw/rgw_common.h')
-rw-r--r--src/rgw/rgw_common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h
index d1394476213..c7b09e401f1 100644
--- a/src/rgw/rgw_common.h
+++ b/src/rgw/rgw_common.h
@@ -583,6 +583,9 @@ struct RGWUserInfo
uint32_t type;
std::set<std::string> mfa_ids;
rgw_account_id account_id;
+ std::string path = "/";
+ ceph::real_time create_date;
+ std::multimap<std::string, std::string> tags;
RGWUserInfo()
: suspended(0),
@@ -651,6 +654,9 @@ struct RGWUserInfo
}
encode(user_id.ns, bl);
encode(account_id, bl);
+ encode(path, bl);
+ encode(create_date, bl);
+ encode(tags, bl);
ENCODE_FINISH(bl);
}
void decode(bufferlist::const_iterator& bl) {
@@ -743,6 +749,11 @@ struct RGWUserInfo
}
if (struct_v >= 23) {
decode(account_id, bl);
+ decode(path, bl);
+ decode(create_date, bl);
+ decode(tags, bl);
+ } else {
+ path = "/";
}
DECODE_FINISH(bl);
}