Signed-off-by: Casey Bodley <cbodley@redhat.com>
return !(k < *this);
}
- std::ostream& operator<<(std::ostream& out) const {
- out << to_string();
- return out;
- }
-
void encode(ceph::buffer::list &bl) const {
ENCODE_START(1, 1, bl);
encode(name, bl);
};
WRITE_CLASS_ENCODER(cls_rgw_obj_key)
+inline std::ostream& operator<<(std::ostream& out, const cls_rgw_obj_key& o) {
+ out << o.name;
+ if (!o.instance.empty()) {
+ out << '[' << o.instance << ']';
+ }
+ return out;
+}
struct rgw_bucket_dir_entry {
/* a versioned object instance */
return out << o.to_str();
}
-inline std::ostream& operator<<(std::ostream& out, const rgw_obj_index_key &o) {
- if (o.instance.empty()) {
- return out << o.name;
- } else {
- return out << o.name << "[" << o.instance << "]";
- }
-}
-
struct req_init_state {
/* Keeps [[tenant]:]bucket until we parse the token. */
std::string url_bucket;