]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_admin_user.h
import 15.2.0 Octopus source
[ceph.git] / ceph / src / rgw / rgw_admin_user.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab ft=cpp
3
4 /*
5 * create rgw admin user
6 *
7 * Copyright (C) 2015 Red Hat, Inc.
8 *
9 * This is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License version 2.1, as published by the Free Software
12 * Foundation. See file COPYING.
13 *
14 */
15
16 #ifndef RGW_ADMIN_USER_H
17 #define RGW_ADMIN_USER_H
18
19 #include <string>
20 #include "common/config.h"
21
22 #include <boost/intrusive_ptr.hpp>
23 #include "rgw_sal.h"
24
25 namespace rgw {
26
27 class RGWLibAdmin
28 {
29 rgw::sal::RGWRadosStore *store;
30 boost::intrusive_ptr<CephContext> cct;
31
32 public:
33 rgw::sal::RGWRadosStore* get_store()
34 {
35 return store;
36 }
37
38 int init();
39 int init(std::vector<const char *>& args);
40 int stop();
41 };
42 }
43
44 #endif /*RGW_ADMIN_USER_H */