pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
pcmki_acl.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2023 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 #ifndef PCMK__PCMKI_PCMKI_ACL__H
10 #define PCMK__PCMKI_PCMKI_ACL__H
11 
12 #include <crm/common/xml.h>
13 
14 // How ACLs can be displayed (for cibadmin --show-access)
21 };
22 
23 // Minimum CIB schema version that can be used to annotate and display ACLs
24 #define PCMK__COMPAT_ACL_2_MIN_INCL "pacemaker-2.0"
25 
39 int pcmk__acl_annotate_permissions(const char *cred, const xmlDoc *cib_doc,
40  xmlDoc **acl_evaled_doc);
41 
56 int pcmk__acl_evaled_render(xmlDoc *annotated_doc, enum pcmk__acl_render_how,
57  xmlChar **doc_txt_ptr);
58 
59 #endif
pcmk__acl_render_how
Definition: pcmki_acl.h:15
int pcmk__acl_annotate_permissions(const char *cred, const xmlDoc *cib_doc, xmlDoc **acl_evaled_doc)
Annotate CIB with XML namespaces indicating ACL evaluation results.
Definition: pcmk_acl.c:204
int pcmk__acl_evaled_render(xmlDoc *annotated_doc, enum pcmk__acl_render_how, xmlChar **doc_txt_ptr)
Definition: pcmk_acl.c:263
Wrappers for and extensions to libxml2.