pacemaker
3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
include
pcmki
pcmki_acl.h
Go to the documentation of this file.
1
/*
2
* Copyright 2004-2024 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
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
// How ACLs can be displayed (for cibadmin --show-access)
19
enum
pcmk__acl_render_how
{
20
pcmk__acl_render_none
= 0,
21
pcmk__acl_render_namespace
,
22
pcmk__acl_render_text
,
23
pcmk__acl_render_color
,
24
pcmk__acl_render_default
,
25
};
26
27
// Minimum CIB schema version that can be used to annotate and display ACLs
28
#define PCMK__COMPAT_ACL_2_MIN_INCL "pacemaker-2.0"
29
43
int
pcmk__acl_annotate_permissions
(
const
char
*cred,
const
xmlDoc *cib_doc,
44
xmlDoc **acl_evaled_doc);
45
60
int
pcmk__acl_evaled_render
(xmlDoc *annotated_doc,
enum
pcmk__acl_render_how
,
61
xmlChar **doc_txt_ptr);
62
63
#ifdef __cplusplus
64
}
65
#endif
66
67
#endif // PCMK__PCMKI_PCMKI_ACL__H
pcmk__acl_render_how
pcmk__acl_render_how
Definition:
pcmki_acl.h:19
pcmk__acl_render_namespace
Definition:
pcmki_acl.h:21
pcmk__acl_render_default
Definition:
pcmki_acl.h:24
pcmk__acl_annotate_permissions
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:203
pcmk__acl_evaled_render
int pcmk__acl_evaled_render(xmlDoc *annotated_doc, enum pcmk__acl_render_how, xmlChar **doc_txt_ptr)
Definition:
pcmk_acl.c:257
xml.h
Wrappers for and extensions to libxml2.
pcmk__acl_render_none
Definition:
pcmki_acl.h:20
pcmk__acl_render_text
Definition:
pcmki_acl.h:22
pcmk__acl_render_color
Definition:
pcmki_acl.h:23
Generated on Wed Jan 8 2025 16:55:39 for pacemaker by
1.8.14