pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Functions
pcmk_agents.c File Reference
#include <crm_internal.h>
#include <crm/lrmd_internal.h>
#include <pacemaker.h>
#include <pacemaker-internal.h>
Include dependency graph for pcmk_agents.c:

Go to the source code of this file.

Functions

int pcmk__list_alternatives (pcmk__output_t *out, const char *agent_spec)
 
int pcmk_list_alternatives (xmlNodePtr *xml, const char *agent_spec)
 List available providers for the given OCF agent. More...
 
int pcmk__list_agents (pcmk__output_t *out, char *agent_spec)
 
int pcmk_list_agents (xmlNodePtr *xml, char *agent_spec)
 List all agents available for the named standard and/or provider. More...
 
int pcmk__list_providers (pcmk__output_t *out, const char *agent_spec)
 
int pcmk_list_providers (xmlNodePtr *xml, const char *agent_spec)
 List all available OCF providers for the given agent. More...
 
int pcmk__list_standards (pcmk__output_t *out)
 
int pcmk_list_standards (xmlNodePtr *xml)
 List all available resource agent standards. More...
 

Function Documentation

◆ pcmk__list_agents()

int pcmk__list_agents ( pcmk__output_t out,
char *  agent_spec 
)

Definition at line 77 of file pcmk_agents.c.

◆ pcmk__list_alternatives()

int pcmk__list_alternatives ( pcmk__output_t out,
const char *  agent_spec 
)

Definition at line 17 of file pcmk_agents.c.

◆ pcmk__list_providers()

int pcmk__list_providers ( pcmk__output_t out,
const char *  agent_spec 
)

Definition at line 139 of file pcmk_agents.c.

◆ pcmk__list_standards()

int pcmk__list_standards ( pcmk__output_t out)

Definition at line 195 of file pcmk_agents.c.

◆ pcmk_list_agents()

int pcmk_list_agents ( xmlNodePtr *  xml,
char *  agent_spec 
)

List all agents available for the named standard and/or provider.

Parameters
[in,out]xmlThe destination for the result, as an XML tree
[in]agent_specSTD[:PROV]
Returns
Standard Pacemaker return code

Definition at line 121 of file pcmk_agents.c.

◆ pcmk_list_alternatives()

int pcmk_list_alternatives ( xmlNodePtr *  xml,
const char *  agent_spec 
)

List available providers for the given OCF agent.

Parameters
[in,out]xmlThe destination for the result, as an XML tree
[in]agent_specResource agent name
Returns
Standard Pacemaker return code

Definition at line 50 of file pcmk_agents.c.

◆ pcmk_list_providers()

int pcmk_list_providers ( xmlNodePtr *  xml,
const char *  agent_spec 
)

List all available OCF providers for the given agent.

Parameters
[in,out]xmlThe destination for the result, as an XML tree
[in]agent_specResource agent name
Returns
Standard Pacemaker return code

Definition at line 177 of file pcmk_agents.c.

◆ pcmk_list_standards()

int pcmk_list_standards ( xmlNodePtr *  xml)

List all available resource agent standards.

Parameters
[in,out]xmlThe destination for the result, as an XML tree
Returns
Standard Pacemaker return code

Definition at line 228 of file pcmk_agents.c.