]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: add rgw_owner variant with json encoding
authorCasey Bodley <cbodley@redhat.com>
Fri, 3 Nov 2023 00:28:03 +0000 (20:28 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Apr 2024 19:34:26 +0000 (15:34 -0400)
commit548d71d1ea9ae084d4dcbbc5ba1f3ae11bd8ba7f
tree8ae3de63ae802e4957345c9fbc41d167309138f4
parent84a9140fae941e796b62274907422fc517e7d7fa
rgw: add rgw_owner variant with json encoding

existing buckets and objects use `struct rgw_user` for the owner. with
the addition of accounts, we need to be able to represent ownership by
the account rather than its users

add a `rgw_owner` variant that preserves the existing json encoding of
`rgw_user` while adding a new representation for account ids

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 87a74f8603bdeccdea3fdfa7b4e0fd344fba8aae)
src/rgw/rgw_basic_types.cc
src/rgw/rgw_user_types.h