pacemaker
2.1.0-7c3f660
Scalable High-Availability cluster resource manager
|
API related to resource agents. More...
Go to the source code of this file.
Macros | |
#define | PCMK_STONITH_ACTION_LIMIT "pcmk_action_limit" |
#define | PCMK_STONITH_DELAY_BASE "pcmk_delay_base" |
#define | PCMK_STONITH_DELAY_MAX "pcmk_delay_max" |
#define | PCMK_STONITH_HOST_ARGUMENT "pcmk_host_argument" |
#define | PCMK_STONITH_HOST_CHECK "pcmk_host_check" |
#define | PCMK_STONITH_HOST_LIST "pcmk_host_list" |
#define | PCMK_STONITH_HOST_MAP "pcmk_host_map" |
#define | PCMK_STONITH_PROVIDES "provides" |
#define | PCMK_STONITH_STONITH_TIMEOUT "stonith-timeout" |
#define | PCMK_OCF_MAJOR_VERSION "1" |
#define | PCMK_OCF_MINOR_VERSION "1" |
#define | PCMK_OCF_VERSION PCMK_OCF_MAJOR_VERSION "." PCMK_OCF_MINOR_VERSION |
Enumerations | |
enum | pcmk_ra_caps { pcmk_ra_cap_none = 0, pcmk_ra_cap_provider = (1 << 0), pcmk_ra_cap_status = (1 << 1), pcmk_ra_cap_params = (1 << 2), pcmk_ra_cap_unique = (1 << 3), pcmk_ra_cap_promotable = (1 << 4), pcmk_ra_cap_stdin = (1 << 5), pcmk_ra_cap_fence_params = (1 << 6) } |
Functions | |
uint32_t | pcmk_get_ra_caps (const char *standard) |
Get capabilities of a resource agent standard. More... | |
char * | crm_generate_ra_key (const char *standard, const char *provider, const char *type) |
int | crm_parse_agent_spec (const char *spec, char **standard, char **provider, char **type) |
Parse a "standard[:provider]:type" agent specification. More... | |
bool | pcmk_stonith_param (const char *param) |
Check whether a given stonith parameter is handled by Pacemaker. More... | |
API related to resource agents.
Definition in file agents.h.
#define PCMK_OCF_VERSION PCMK_OCF_MAJOR_VERSION "." PCMK_OCF_MINOR_VERSION |
enum pcmk_ra_caps |
char* crm_generate_ra_key | ( | const char * | standard, |
const char * | provider, | ||
const char * | type | ||
) |
int crm_parse_agent_spec | ( | const char * | spec, |
char ** | standard, | ||
char ** | provider, | ||
char ** | type | ||
) |
Parse a "standard[:provider]:type" agent specification.
[in] | spec | Agent specification |
[out] | standard | Newly allocated memory containing agent standard (or NULL) |
[out] | provider | Newly allocated memory containing agent provider (or NULL) |
put] | type Newly allocated memory containing agent type (or NULL) |
uint32_t pcmk_get_ra_caps | ( | const char * | standard | ) |
bool pcmk_stonith_param | ( | const char * | param | ) |
Check whether a given stonith parameter is handled by Pacemaker.
Return true if a given string is the name of one of the special resource instance attributes interpreted directly by Pacemaker for stonith-class resources.
[in] | param | Parameter name to check |
param
is a special fencing parameter