|
| acl ()=default |
| Create an empty ACL. Keep in mind that an empty ACL is an illegal ACL. More...
|
|
| acl (std::vector< acl_rule > rules) noexcept |
| Create an instance with the provided rules. More...
|
|
| acl (std::initializer_list< acl_rule > rules) |
| Create an instance with the provided rules. More...
|
|
size_type | size () const |
| The number of rules in this ACL. More...
|
|
void | reserve (size_type capacity) |
| Increase the reserved memory block so it can store at least capacity rules without reallocating. More...
|
|
template<typename... TArgs> |
void | emplace_back (TArgs &&...args) |
| Construct a rule emplace on the end of the list using args. More...
|
|
|
const acl_rule & | operator[] (size_type idx) const |
|
acl_rule & | operator[] (size_type idx) |
|
|
const acl_rule & | at (size_type idx) const |
|
acl_rule & | at (size_type idx) |
|
|
iterator | begin () |
|
const_iterator | begin () const |
|
const_iterator | cbegin () const |
|
|
iterator | end () |
|
const_iterator | end () const |
|
const_iterator | cend () const |
|
|
void | push_back (acl_rule &&x) |
|
void | push_back (const acl_rule &x) |
|
An access control list is a wrapper around acl_rule instances.
In general, the ACL system is similar to UNIX file access permissions, where znodes act as files. Unlike UNIX, each znode can have any number of ACLs to correspond with the potentially limitless (and pluggable) authentication schemes. A more surprising difference is that ACLs are not recursive: If /path
is only readable by a single user, but /path/sub
is world-readable, then anyone will be able to read /path/sub
.
See ZooKeeper Programmer's Guide for more information.
- See also
- acls
Definition at line 139 of file acl.hpp.