25 rc =
lrmd__new(&lrmd_conn, NULL, NULL, 0);
33 rc = out->
message(out,
"alternatives-list", list, agent_spec);
40 out->
err(out,
_(
"No %s found for %s"),
"OCF providers", agent_spec);
80 char *provider = NULL;
86 rc =
lrmd__new(&lrmd_conn, NULL, NULL, 0);
91 provider = strchr(agent_spec,
':');
97 rc = lrmd_conn->
cmds->
list_agents(lrmd_conn, &list, agent_spec, provider);
100 rc = out->
message(out,
"agents-list", list, agent_spec, provider);
107 if (provider == NULL) {
108 out->
err(out,
_(
"No agents found for standard '%s'"), agent_spec);
110 out->
err(out,
_(
"No agents found for standard '%s' and provider '%s'"),
111 agent_spec, provider);
147 rc =
lrmd__new(&lrmd_conn, NULL, NULL, 0);
155 rc = out->
message(out,
"providers-list", list, agent_spec);
162 if (agent_spec == NULL) {
163 out->
err(out,
_(
"No %s found"),
"OCF providers");
165 out->
err(out,
_(
"No %s found for %s"),
"OCF providers", agent_spec);
203 rc =
lrmd__new(&lrmd_conn, NULL, NULL, 0);
211 rc = out->
message(out,
"standards-list", list);
218 out->
err(out,
_(
"No %s found"),
"standards");
int pcmk_list_agents(xmlNodePtr *xml, char *agent_spec)
List all agents available for the named standard and/or provider.
int pcmk__list_agents(pcmk__output_t *out, char *agent_spec)
int(* message)(pcmk__output_t *out, const char *message_id,...)
int pcmk_list_alternatives(xmlNodePtr *xml, const char *agent_spec)
List available providers for the given OCF agent.
int pcmk_list_standards(xmlNodePtr *xml)
List all available resource agent standards.
crm_exit_t pcmk_rc2exitc(int rc)
Map a function return code to the most similar exit code.
void pcmk__xml_output_finish(pcmk__output_t *out, crm_exit_t exit_status, xmlNodePtr *xml)
int pcmk__list_providers(pcmk__output_t *out, const char *agent_spec)
int pcmk__xml_output_new(pcmk__output_t **out, xmlNodePtr *xml)
int lrmd__new(lrmd_t **api, const char *nodename, const char *server, int port)
int(*) int(*) void(* err)(pcmk__output_t *out, const char *format,...) G_GNUC_PRINTF(2
int pcmk__list_alternatives(pcmk__output_t *out, const char *agent_spec)
void lrmd__register_messages(pcmk__output_t *out)
int(* list_agents)(lrmd_t *lrmd, lrmd_list_t **agents, const char *standard, const char *provider)
Retrieve a list of installed resource agents.
#define pcmk__assert(expr)
lrmd_api_operations_t * cmds
int pcmk_list_providers(xmlNodePtr *xml, const char *agent_spec)
List all available OCF providers for the given agent.
This structure contains everything that makes up a single output formatter.
int(* list_standards)(lrmd_t *lrmd, lrmd_list_t **standards)
Retrieve a list of supported standards.
int(* list_ocf_providers)(lrmd_t *lrmd, const char *agent, lrmd_list_t **providers)
Retrieve a list of resource agent providers.
void lrmd_api_delete(lrmd_t *lrmd)
Destroy executor connection object.
int pcmk__list_standards(pcmk__output_t *out)