]>
git.proxmox.com Git - ceph.git/blob - ceph/src/cls/log/cls_log_client.h
1 #ifndef CEPH_CLS_LOG_CLIENT_H
2 #define CEPH_CLS_LOG_CLIENT_H
4 #include "include/rados/librados_fwd.hpp"
5 #include "cls_log_types.h"
11 void cls_log_add_prepare_entry(cls_log_entry
& entry
, const utime_t
& timestamp
,
12 const string
& section
, const string
& name
, bufferlist
& bl
);
14 void cls_log_add(librados::ObjectWriteOperation
& op
, list
<cls_log_entry
>& entries
, bool monotonic_inc
);
15 void cls_log_add(librados::ObjectWriteOperation
& op
, cls_log_entry
& entry
);
16 void cls_log_add(librados::ObjectWriteOperation
& op
, const utime_t
& timestamp
,
17 const string
& section
, const string
& name
, bufferlist
& bl
);
19 void cls_log_list(librados::ObjectReadOperation
& op
, utime_t
& from
, utime_t
& to
,
20 const string
& in_marker
, int max_entries
,
21 list
<cls_log_entry
>& entries
,
22 string
*out_marker
, bool *truncated
);
24 void cls_log_trim(librados::ObjectWriteOperation
& op
, const utime_t
& from_time
, const utime_t
& to_time
,
25 const string
& from_marker
, const string
& to_marker
);
26 int cls_log_trim(librados::IoCtx
& io_ctx
, const string
& oid
, const utime_t
& from_time
, const utime_t
& to_time
,
27 const string
& from_marker
, const string
& to_marker
);
29 void cls_log_info(librados::ObjectReadOperation
& op
, cls_log_header
*header
);