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

#include <include/types.h>

#include <vector>

#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