zookeeper-cpp
ZooKeeper Client for C++
|
An access control list is a wrapper around acl_rule
instances.
More...
#include <zk/acl.hpp>
Public Types | |
using | iterator = std::vector< acl_rule >::iterator |
using | const_iterator = std::vector< acl_rule >::const_iterator |
using | size_type = std::size_t |
Public Member Functions | |
acl (std::vector< acl_rule > rules) noexcept | |
acl (std::initializer_list< acl_rule > rules) | |
size_type | size () const |
const acl_rule & | operator[] (size_type idx) const |
iterator | begin () |
const_iterator | begin () const |
const_iterator | cbegin () const |
iterator | end () |
const_iterator | end () const |
const_iterator | cend () const |
void | reserve (size_type sz) |
template<typename... TArgs> | |
void | emplace_back (TArgs &&...args) |
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
.