![]()  | 
  
    pacemaker
    1.1.18-7fdfbbe
    
   Scalable High-Availability cluster resource manager 
   | 
 
#include <crm_internal.h>#include <stdio.h>#include <crm/crm.h>#include <crm/msg_xml.h>#include <crm/attrd.h>
Go to the source code of this file.
Macros | |
| #define | _GNU_SOURCE | 
| #define | LRM_TARGET_ENV "OCF_RESKEY_" CRM_META "_" XML_LRM_ATTR_TARGET | 
Functions | |
| int | attrd_update_delegate (crm_ipc_t *ipc, char command, const char *host, const char *name, const char *value, const char *section, const char *set, const char *dampen, const char *user_name, int options) | 
| Send a request to attrd.  More... | |
| int | attrd_clear_delegate (crm_ipc_t *ipc, const char *host, const char *resource, const char *operation, const char *interval, const char *user_name, int options) | 
| Send a request to attrd to clear resource failure.  More... | |
| const char * | attrd_get_target (const char *name) | 
| #define _GNU_SOURCE | 
Definition at line 10 of file attrd_client.c.
| #define LRM_TARGET_ENV "OCF_RESKEY_" CRM_META "_" XML_LRM_ATTR_TARGET | 
Definition at line 261 of file attrd_client.c.
| int attrd_clear_delegate | ( | crm_ipc_t * | ipc, | 
| const char * | host, | ||
| const char * | resource, | ||
| const char * | operation, | ||
| const char * | interval, | ||
| const char * | user_name, | ||
| int | options | ||
| ) | 
Send a request to attrd to clear resource failure.
| [in] | ipc | Connection to attrd (or NULL to use a local connection) | 
| [in] | host | Affect only this host (or NULL for all hosts) | 
| [in] | name | Name of resource to clear | 
| [in] | user_name | ACL user to pass to attrd | 
| [in] | options | attrd_opt_remote if host is a Pacemaker Remote node | 
Definition at line 236 of file attrd_client.c.
| const char* attrd_get_target | ( | const char * | name | ) | 
Definition at line 264 of file attrd_client.c.
| int attrd_update_delegate | ( | crm_ipc_t * | ipc, | 
| char | command, | ||
| const char * | host, | ||
| const char * | name, | ||
| const char * | value, | ||
| const char * | section, | ||
| const char * | set, | ||
| const char * | dampen, | ||
| const char * | user_name, | ||
| int | options | ||
| ) | 
Send a request to attrd.
| [in] | ipc | Connection to attrd (or NULL to use a local connection) | 
| [in] | command | A character indicating the type of attrd request: U or v: update attribute (or refresh if name is NULL) u: update attributes matching regular expression in name D: delete attribute (value must be NULL) R: refresh B: update both attribute and its dampening Y: update attribute dampening only Q: query attribute C: remove peer specified by host | 
| [in] | host | Affect only this host (or NULL for all hosts) | 
| [in] | name | Name of attribute to affect | 
| [in] | value | Attribute value to set | 
| [in] | section | Status or nodes | 
| [in] | set | ID of attribute set to use (or NULL to choose first) | 
| [in] | dampen | Attribute dampening to use with B/Y, and U/v if creating | 
| [in] | user_name | ACL user to pass to attrd | 
| [in] | options | Bitmask that may include: attrd_opt_remote: host is a Pacemaker Remote node attrd_opt_private: attribute is private (not kept in CIB) | 
Definition at line 135 of file attrd_client.c.
 1.8.5