pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
agents.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <crm/crm.h>
#include <crm/common/util.h>
Include dependency graph for agents.c:

Go to the source code of this file.

Functions

uint32_t pcmk_get_ra_caps (const char *standard)
 Get capabilities of a resource agent standard.
 
int pcmk__effective_rc (int rc)
 
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.
 
bool pcmk_stonith_param (const char *param)
 Check whether a given stonith parameter is handled by Pacemaker.
 

Function Documentation

◆ crm_generate_ra_key()

char * crm_generate_ra_key ( const char * standard,
const char * provider,
const char * type )

Definition at line 84 of file agents.c.

◆ crm_parse_agent_spec()

int crm_parse_agent_spec ( const char * spec,
char ** standard,
char ** provider,
char ** type )

Parse a "standard[:provider]:type" agent specification.

Parameters
[in]specAgent specification
[out]standardNewly allocated memory containing agent standard (or NULL)
[out]providerNewly allocated memory containing agent provider (or NULL)
[put]type Newly allocated memory containing agent type (or NULL)
Returns
pcmk_ok if the string could be parsed, -EINVAL otherwise
Note
It is acceptable for the type to contain a ':' if the standard supports that. For example, systemd supports the form "systemd:UNIT@A:B".
It is the caller's responsibility to free the returned values.

Definition at line 116 of file agents.c.

◆ pcmk__effective_rc()

int pcmk__effective_rc ( int rc)

Definition at line 63 of file agents.c.

◆ pcmk_get_ra_caps()

uint32_t pcmk_get_ra_caps ( const char * standard)

Get capabilities of a resource agent standard.

Parameters
[in]standardStandard name
Returns
Bitmask of enum pcmk_ra_caps values

Definition at line 27 of file agents.c.

◆ pcmk_stonith_param()

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.

Parameters
[in]paramParameter name to check
Returns
true if param is a special fencing parameter

Definition at line 166 of file agents.c.