Skip to content

Commit

Permalink
rgw: role: basic ctl class defn
Browse files Browse the repository at this point in the history
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
  • Loading branch information
theanalyst authored and pritha-srivastava committed Jun 6, 2022
1 parent 0cabcf6 commit 2335a4b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/rgw/rgw_role.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,33 @@ class RGWRole
static const std::string& get_path_oid_prefix();
};
WRITE_CLASS_ENCODER(RGWRole)

class RGWRoleMetadataHandler;
class RGWSI_Role;
class RGWSI_MetaBackend_Handler;

class RGWRoleCtl {
struct Svc {
RGWSI_Role *role {nullptr};
} svc;
RGWRoleMetadataHandler *rmhandler;
RGWSI_MetaBackend_Handler *be_handler{nullptr};
public:
RGWRoleCtl(RGWSI_Role *_role_svc,
RGWRoleMetadataHandler *_rmhander);

struct PutParams {
ceph::real_time mtime;
bool exclusive {false};
RGWObjVersionTracker *objv_tracker {nullptr};
std::map<std::string, bufferlist> *attrs {nullptr};

PutParams() {};
};

int store_info(const RGWRole& role,
optional_yield y,
const PutParams& params = {});
};
} } // namespace rgw::sal
#endif /* CEPH_RGW_ROLE_H */

0 comments on commit 2335a4b

Please sign in to comment.