Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F7632212
rules.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
rules.h
View Options
/*
* Copyright 2004-2023 the Pacemaker project contributors
*
* The version control history for this file may have further details.
*
* This source code is licensed under the GNU Lesser General Public License
* version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
*/
#ifndef PCMK__CRM_COMMON_RULES__H
# define PCMK__CRM_COMMON_RULES__H
#ifdef __cplusplus
extern "C" {
#endif
/*!
* \file
* \brief Scheduler API for rules
* \ingroup core
*/
/* Allowed subexpressions of a rule
* @COMPAT This should be made internal at an API compatibility break
*/
//!@{
//! \deprecated For Pacemaker use only
enum expression_type {
pcmk__subexpr_unknown = 0, // Unknown subexpression type
pcmk__subexpr_rule = 1, // Nested rule
pcmk__subexpr_attribute = 2, // Node attribute expression
pcmk__subexpr_location = 3, // Node location expression
pcmk__subexpr_role = 4, // Resource role expression
pcmk__subexpr_datetime = 5, // Date/time expression
pcmk__subexpr_resource = 7, // Resource agent expression
pcmk__subexpr_operation = 8, // Operation expression
#if !defined(PCMK_ALLOW_DEPRECATED) || (PCMK_ALLOW_DEPRECATED == 1)
not_expr = pcmk__subexpr_unknown,
nested_rule = pcmk__subexpr_rule,
attr_expr = pcmk__subexpr_attribute,
loc_expr = pcmk__subexpr_location,
role_expr = pcmk__subexpr_role,
time_expr = pcmk__subexpr_datetime,
version_expr = 6,
rsc_expr = pcmk__subexpr_resource,
op_expr = pcmk__subexpr_operation,
#endif
};
//!@}
#ifdef __cplusplus
}
#endif
#endif // PCMK__CRM_COMMON_RULES__H
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Thu, Oct 16, 3:18 PM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2432574
Default Alt Text
rules.h (1 KB)
Attached To
Mode
rP Pacemaker
Attached
Detach File
Event Timeline
Log In to Comment