diff options
author | Casey Bodley <cbodley@redhat.com> | 2023-12-17 21:03:53 +0100 |
---|---|---|
committer | Casey Bodley <cbodley@redhat.com> | 2024-04-10 19:09:14 +0200 |
commit | de9feeb32ca71c67b29e753c3164cd778c08c280 (patch) | |
tree | d55eb6b96cc4111167118310abbd91a972eca62f /src/rgw/rgw_common.h | |
parent | test/cls: add ceph_test_cls_user (diff) | |
download | ceph-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.h | 11 |
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); } |