]> git.proxmox.com Git - ceph.git/blame - ceph/src/rgw/rgw_admin_user.h
buildsys: switch source download to quincy
[ceph.git] / ceph / src / rgw / rgw_admin_user.h
CommitLineData
11fdf7f2 1// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
9f95a23c 2// vim: ts=8 sw=2 smarttab ft=cpp
11fdf7f2
TL
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
9f95a23c
TL
22#include <boost/intrusive_ptr.hpp>
23#include "rgw_sal.h"
11fdf7f2
TL
24
25namespace rgw {
26
27 class RGWLibAdmin
28 {
9f95a23c 29 rgw::sal::RGWRadosStore *store;
11fdf7f2
TL
30 boost::intrusive_ptr<CephContext> cct;
31
32 public:
9f95a23c 33 rgw::sal::RGWRadosStore* get_store()
11fdf7f2
TL
34 {
35 return store;
36 }
37
38 int init();
9f95a23c 39 int init(std::vector<const char *>& args);
11fdf7f2
TL
40 int stop();
41 };
42}
43
44#endif /*RGW_ADMIN_USER_H */