]>
git.proxmox.com Git - ceph.git/blob - ceph/src/cls/lua/cls_lua_client.cc
3 #include "include/encoding.h"
4 #include "include/rados/librados.hpp" // for IoCtx
5 #include "cls_lua_client.h"
6 #include "cls_lua_ops.h"
10 using librados::IoCtx
;
11 using librados::bufferlist
;
13 namespace cls_lua_client
{
15 * Currently the return code and return bufferlist are not wrapped in a
16 * protocol that allows object class vs Lua to be distinguished. For
17 * instance, -EOPNOTSUPP might refer to cls_lua not being found, but would
18 * also be returned when cls_lua is found, but a Lua handler is not found.
20 int exec(IoCtx
& ioctx
, const string
& oid
, const string
& script
,
21 const string
& handler
, bufferlist
& input
, bufferlist
& output
)
32 return ioctx
.exec(oid
, "lua", "eval_bufferlist", inbl
, output
);