]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
ceph_json: json encoding filter
authorYehuda Sadeh <yehuda@redhat.com>
Sat, 16 Nov 2019 02:32:17 +0000 (18:32 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 28 Jan 2020 18:20:38 +0000 (10:20 -0800)
commit2b7a9a896c9bfc1d60f1dcf166f40077a83a1e5d
tree4fb75fceed74859a69eff40b49513646a79c39d8
parentd73f4f4f41c9b3640adbccfa091718e7a8f6090d
ceph_json: json encoding filter

Can create and register a filter (that will be pointed at by the formatter
as an external feature), that could be then used to replace default
encoders for specific data types. This can be useful in cases where
we want to mutate the output (for example: translate zone ids to zone
names on the fly).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/common/Formatter.h
src/common/ceph_json.h