]> git.proxmox.com Git - ceph.git/blob - ceph/src/cls/log/cls_log_client.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / cls / log / cls_log_client.h
1 #ifndef CEPH_CLS_LOG_CLIENT_H
2 #define CEPH_CLS_LOG_CLIENT_H
3
4 #include "include/rados/librados_fwd.hpp"
5 #include "cls_log_types.h"
6
7 /*
8 * log objclass
9 */
10
11 void cls_log_add_prepare_entry(cls_log_entry& entry, const utime_t& timestamp,
12 const string& section, const string& name, bufferlist& bl);
13
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);
18
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);
23
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);
28
29 void cls_log_info(librados::ObjectReadOperation& op, cls_log_header *header);
30
31 #endif