]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_tag.h
5 #include <include/types.h>
6 #include <boost/container/flat_map.hpp>
8 #include "rgw_common.h"
13 using tag_map_t
= boost::container::flat_map
<std::string
, std::string
>;
19 void encode(bufferlist
& bl
) const {
21 ::encode(tag_map
, bl
);
25 void decode(bufferlist::iterator
&bl
) {
26 DECODE_START_LEGACY_COMPAT_LEN(1, 1, 1, bl
);
31 void dump(Formatter
*f
) const;
32 bool add_tag(const std::string
& key
, const std::string
& val
="");
33 int check_and_add_tag(const std::string
& key
, const std::string
& val
="");
34 size_t count() const {return tag_map
.size();}
35 int set_from_string(const std::string
& input
);
36 const tag_map_t
& get_tags() const {return tag_map
;}
38 WRITE_CLASS_ENCODER(RGWObjTags
)
40 #endif /* RGW_TAG_H */