]> git.proxmox.com Git - proxmox-backup.git/commit - src/config/acl.rs
acl: add docs and adapt visibility
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 17 Dec 2020 14:27:43 +0000 (15:27 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 18 Dec 2020 06:05:11 +0000 (07:05 +0100)
commit23dc68fdea6cffae5b6127d2d521a77339506413
tree34f27c3505bec39f66f37c0b15d5d9c0d07aa0e1
parentb532dd00c4bfb4535c3e1a6793b77e052faf74a3
acl: add docs and adapt visibility

document all public things, add some doc links and make some
previously-public things only available for test cases or within the
crate:

previously public, now private:
- AclTreeNode::extract_user_roles (we have extract_roles())
- AclTreeNode::extract_group_roles (same)
- AclTreeNode::delete_group_role (exists on AclTree)
- AclTreeNode::delete_user_role (same)
- AclTreeNode::insert_group_role (same)
- AclTreeNode::insert_user_role (same)
- AclTree::write_config (we have save_config())
- AclTree::load (we have config()/cached_config())

previously public, now crate-internal:
- AclTree::from_raw (only used by tests)
- split_acl_path (used by some test binaries)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
src/config/acl.rs