This allows for other s3 clients to be created, we previously only set
the value of S3 system key from rados.
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
RGWRESTConn::RGWRESTConn(CephContext *_cct, RGWRados *store,
const string& _remote_id,
- const list<string>& remote_endpoints)
+ const list<string>& remote_endpoints,
+ RGWAccessKey _cred)
: cct(_cct),
endpoints(remote_endpoints.begin(), remote_endpoints.end()),
+ key(std::move(_cred)),
remote_id(_remote_id)
{
if (store) {
public:
- RGWRESTConn(CephContext *_cct, RGWRados *store, const string& _remote_id, const list<string>& endpoints);
+ RGWRESTConn(CephContext *_cct, const string& _remote_id, const list<string>& endpoints, RGWAccessKey _cred);
+
// custom move needed for atomic
RGWRESTConn(RGWRESTConn&& other);
RGWRESTConn& operator=(RGWRESTConn&& other);