]> git.proxmox.com Git - ceph.git/blame - ceph/src/rgw/rgw_usage.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / rgw / rgw_usage.h
CommitLineData
7c673cae 1// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
9f95a23c 2// vim: ts=8 sw=2 smarttab ft=cpp
7c673cae
FG
3
4#ifndef CEPH_RGW_USAGE_H
5#define CEPH_RGW_USAGE_H
6
7#include <string>
8#include <map>
9
10#include "common/Formatter.h"
11#include "rgw_formats.h"
12
13class RGWRados;
14
15
16class RGWUsage
17{
18public:
11fdf7f2 19 static int show(RGWRados *store, const rgw_user& uid, const string& bucket_name, uint64_t start_epoch,
7c673cae 20 uint64_t end_epoch, bool show_log_entries, bool show_log_sum,
11fdf7f2 21 std::map<std::string, bool> *categories, RGWFormatterFlusher& flusher);
7c673cae 22
11fdf7f2 23 static int trim(RGWRados *store, const rgw_user& uid, const string& bucket_name, uint64_t start_epoch,
7c673cae 24 uint64_t end_epoch);
11fdf7f2
TL
25
26 static int clear(RGWRados *store);
7c673cae
FG
27};
28
29
30#endif