pacemaker
2.1.9-49aab99839
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <errno.h>
#include <glib.h>
#include <libxml/tree.h>
#include <crm/cib/internal.h>
#include <crm/common/mainloop.h>
#include <crm/common/results.h>
#include <crm/common/output_internal.h>
#include <crm/pengine/internal.h>
#include <pacemaker.h>
#include <pacemaker-internal.h>
Go to the source code of this file.
Macros | |
#define | XPATH_OP_HISTORY |
Functions | |
int | pcmk__resource_delete (cib_t *cib, uint32_t cib_opts, const char *rsc_id, const char *rsc_type) |
int | pcmk_resource_delete (xmlNodePtr *xml, const char *rsc_id, const char *rsc_type) |
Remove a resource. More... | |
int | pcmk__resource_digests (pcmk__output_t *out, pcmk_resource_t *rsc, const pcmk_node_t *node, GHashTable *overrides) |
int | pcmk_resource_digests (xmlNodePtr *xml, pcmk_resource_t *rsc, const pcmk_node_t *node, GHashTable *overrides) |
Calculate and output resource operation digests. More... | |
#define XPATH_OP_HISTORY |
Definition at line 26 of file pcmk_resource.c.
int pcmk__resource_delete | ( | cib_t * | cib, |
uint32_t | cib_opts, | ||
const char * | rsc_id, | ||
const char * | rsc_type | ||
) |
Definition at line 123 of file pcmk_resource.c.
int pcmk__resource_digests | ( | pcmk__output_t * | out, |
pcmk_resource_t * | rsc, | ||
const pcmk_node_t * | node, | ||
GHashTable * | overrides | ||
) |
Definition at line 196 of file pcmk_resource.c.
int pcmk_resource_delete | ( | xmlNodePtr * | xml, |
const char * | rsc_id, | ||
const char * | rsc_type | ||
) |
Remove a resource.
[in,out] | xml | Destination for the result, as an XML tree |
[in] | rsc_id | Resource to remove |
[in] | rsc_type | Type of the resource ("primitive", "group", etc.) |
pcmk_rc_ok
if rsc_id
doesn't exist or if rsc_type
is incorrect for rsc_id
(deleting something that doesn't exist always succeeds). Definition at line 148 of file pcmk_resource.c.
int pcmk_resource_digests | ( | xmlNodePtr * | xml, |
pcmk_resource_t * | rsc, | ||
const pcmk_node_t * | node, | ||
GHashTable * | overrides | ||
) |
Calculate and output resource operation digests.
[out] | xml | Where to store XML with result |
[in,out] | rsc | Resource to calculate digests for |
[in] | node | Node whose operation history should be used |
[in] | overrides | Hash table of configuration parameters to override |
Definition at line 236 of file pcmk_resource.c.