]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/acl: ACLGrant uses variant for grantee types
authorCasey Bodley <cbodley@redhat.com>
Sat, 18 Nov 2023 16:27:50 +0000 (11:27 -0500)
committerCasey Bodley <cbodley@redhat.com>
Thu, 30 Nov 2023 16:25:02 +0000 (11:25 -0500)
commit7a3eb76761c5b12b139ce0072a9311389b46a5f5
treec0a7babb1f7aef0bcb85a33fc4fa645dccddc05c
parentac4253b403cbcbcb4590fee6d6bd41794b45e763
rgw/acl: ACLGrant uses variant for grantee types

use of `ACLGrant::get_id()` was awkward because most grantee types
returned nothing, but emails were returned as `struct rgw_user`. change
the internal representation into a variant, and expose getters for each
grantee type so callers can handle each type specifically. the encoded
format of `ACLGrant` remains unchanged

Signed-off-by: Casey Bodley <cbodley@redhat.com>
doc/radosgw/lua-scripting.rst
src/rgw/driver/rados/rgw_sync_module_es.cc
src/rgw/rgw_acl.cc
src/rgw/rgw_acl.h
src/rgw/rgw_acl_s3.cc
src/rgw/rgw_acl_swift.cc
src/rgw/rgw_acl_types.h
src/rgw/rgw_lua_request.cc
src/rgw/rgw_rest_client.cc
src/test/rgw/test_rgw_lua.cc