]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/rgw_admin_user.h
update sources to ceph Nautilus 14.2.1
[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
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 "rgw_rados.h"
23
24 namespace rgw {
25
26 class RGWLibAdmin
27 {
28 RGWRados *store;
29 boost::intrusive_ptr<CephContext> cct;
30
31 public:
32 RGWRados* get_store()
33 {
34 return store;
35 }
36
37 int init();
38 int init(vector<const char *>& args);
39 int stop();
40 };
41 }
42
43 #endif /*RGW_ADMIN_USER_H */