summaryrefslogtreecommitdiff
path: root/src/rgw/rgw_acl_swift.h
blob: be64f58021ffb499f07c3e13904a33c75a26decd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef CEPH_RGW_ACL_SWIFT_H
#define CEPH_RGW_ACL_SWIFT3_H

#include <map>
#include <string>
#include <iostream>
#include <vector>
#include <include/types.h>

#include "rgw_acl.h"

using namespace std;

class RGWAccessControlPolicy_SWIFT : public RGWAccessControlPolicy
{
public:
  RGWAccessControlPolicy_SWIFT(CephContext *_cct) : RGWAccessControlPolicy(_cct) {}
  ~RGWAccessControlPolicy_SWIFT() {}

  void add_grants(RGWRados *store, vector<string>& uids, int perm);
  bool create(RGWRados *store, string& id, string& name, string& read_list, string& write_list);
  void to_str(string& read, string& write);
};

#endif