virtual int send_response_data(bufferlist& bl, off_t ofs, off_t len) = 0;
const char* name() const override { return "get_obj"; }
- std::string canonical_name() const override { return fmt::format("REST.{}.OBJECT", s->info.method); }
+ std::string canonical_name() const override {
+ if (get_torrent) {
+ return fmt::format("REST.{}.TORRENT", s->info.method);
+ }
+ return fmt::format("REST.{}.OBJECT", s->info.method);
+ }
RGWOpType get_type() override { return RGW_OP_GET_OBJ; }
uint32_t op_mask() override { return RGW_OP_TYPE_READ; }
virtual bool need_object_expiration() { return false; }
virtual bool should_get_stats() { return false; }
const char* name() const override { return "get_self_usage"; }
- std::string canonical_name() const override { return fmt::format("REST.{}.USER_USAGE", s->info.method); }
uint32_t op_mask() override { return RGW_OP_TYPE_READ; }
};
void send_response() override = 0;
const char* name() const override { return "stat_account"; }
- std::string canonical_name() const override { return fmt::format("REST.{}.ACCOUNT_STATUS", s->info.method); }
RGWOpType get_type() override { return RGW_OP_STAT_ACCOUNT; }
uint32_t op_mask() override { return RGW_OP_TYPE_READ; }
};
void send_response() override = 0;
const char* name() const override { return "get_bucket_location"; }
+ std::string canonical_name() const override { return fmt::format("REST.{}.LOCATION", s->info.method); }
RGWOpType get_type() override { return RGW_OP_GET_BUCKET_LOCATION; }
uint32_t op_mask() override { return RGW_OP_TYPE_READ; }
};
virtual int get_params(optional_yield y) = 0;
void send_response() override = 0;
const char* name() const override { return "stat_bucket"; }
- std::string canonical_name() const override { return fmt::format("REST.{}.BUCKET_STATUS", s->info.method); }
RGWOpType get_type() override { return RGW_OP_STAT_BUCKET; }
uint32_t op_mask() override { return RGW_OP_TYPE_READ; }
};
const std::set<std::string>& rmattr_names,
std::map<int, std::string>& temp_url_keys);
const char* name() const override { return "put_account_metadata"; }
- std::string canonical_name() const override { return fmt::format("REST.{}.ACCOUNT_METADATA", s->info.method); }
RGWOpType get_type() override { return RGW_OP_PUT_METADATA_ACCOUNT; }
uint32_t op_mask() override { return RGW_OP_TYPE_WRITE; }
};
virtual int get_params(optional_yield y) = 0;
void send_response() override = 0;
const char* name() const override { return "put_bucket_metadata"; }
- std::string canonical_name() const override { return fmt::format("REST.{}.BUCKET_METADATA", s->info.method); }
RGWOpType get_type() override { return RGW_OP_PUT_METADATA_BUCKET; }
uint32_t op_mask() override { return RGW_OP_TYPE_WRITE; }
};
virtual int get_params(optional_yield y) = 0;
void send_response() override = 0;
const char* name() const override { return "put_obj_metadata"; }
- std::string canonical_name() const override { return fmt::format("REST.{}.OBJECT_METADATA", s->info.method); }
RGWOpType get_type() override { return RGW_OP_PUT_METADATA_OBJECT; }
uint32_t op_mask() override { return RGW_OP_TYPE_WRITE; }
virtual bool need_object_expiration() { return false; }
void send_response() override = 0;
const char* name() const override { return "restore_obj"; }
- std::string canonical_name() const override { return fmt::format("REST.{}.OBJECT", s->info.method); }
+ std::string canonical_name() const override { return fmt::format("REST.{}.RESTORE", s->info.method); }
RGWOpType get_type() override { return RGW_OP_RESTORE_OBJ; }
uint32_t op_mask() override { return RGW_OP_TYPE_WRITE; }
};
void execute(optional_yield y) override;
void send_response() override = 0;
const char* name() const override { return "get_obj_attrs"; }
+ std::string canonical_name() const override { return fmt::format("REST.{}.OBJECT_ATTRIBUTES", s->info.method); }
RGWOpType get_type() override { return RGW_OP_GET_OBJ_ATTRS; }
uint32_t op_mask() override { return RGW_OP_TYPE_READ; }
}; /* RGWGetObjAttrs */
virtual void send_response() override = 0;
virtual int get_params(optional_yield y) = 0;
const char* name() const override { return "put_bucket_object_lock"; }
+ std::string canonical_name() const override { return fmt::format("REST.{}.OBJECT_LOCK", s->info.method); }
RGWOpType get_type() override { return RGW_OP_PUT_BUCKET_OBJ_LOCK; }
uint32_t op_mask() override { return RGW_OP_TYPE_WRITE; }
};
void execute(optional_yield y) override;
virtual void send_response() override = 0;
const char* name() const override {return "get_bucket_object_lock"; }
+ std::string canonical_name() const override { return fmt::format("REST.{}.OBJECT_LOCK", s->info.method); }
RGWOpType get_type() override { return RGW_OP_GET_BUCKET_OBJ_LOCK; }
uint32_t op_mask() override { return RGW_OP_TYPE_READ; }
};
virtual int get_params(optional_yield y) = 0;
const char* name() const override { return "config_bucket_meta_search"; }
- std::string canonical_name() const override { return fmt::format("REST.{}.BUCKET_MDSEARCH", s->info.method); }
virtual RGWOpType get_type() override { return RGW_OP_CONFIG_BUCKET_META_SEARCH; }
virtual uint32_t op_mask() override { return RGW_OP_TYPE_WRITE; }
};
void execute(optional_yield) override {}
const char* name() const override { return "get_bucket_meta_search"; }
- std::string canonical_name() const override { return fmt::format("REST.{}.BUCKET_MDSEARCH", s->info.method); }
virtual RGWOpType get_type() override { return RGW_OP_GET_BUCKET_META_SEARCH; }
virtual uint32_t op_mask() override { return RGW_OP_TYPE_READ; }
};
void execute(optional_yield y) override;
const char* name() const override { return "delete_bucket_meta_search"; }
- std::string canonical_name() const override { return fmt::format("REST.{}.BUCKET_MDSEARCH", s->info.method); }
virtual RGWOpType delete_type() { return RGW_OP_DEL_BUCKET_META_SEARCH; }
virtual uint32_t op_mask() override { return RGW_OP_TYPE_WRITE; }
};