10 #ifndef PCMK__PACEMAKER__H 11 # define PCMK__PACEMAKER__H 14 # include <libxml/tree.h> 96 unsigned int message_timeout_ms);
111 unsigned int message_timeout_ms);
152 char **uuid,
char **state,
bool *have_quorum,
153 bool *is_remote,
bool show_output,
154 unsigned int message_timeout_ms);
175 pcmk_query_node_name(xmlNodePtr *xml, uint32_t node_id,
char **node_name,
176 unsigned int message_timeout_ms)
179 NULL,
false, message_timeout_ms);
196 unsigned int message_timeout_ms);
255 unsigned int section_opts,
const char *use_date,
256 const char *input_file,
const char *graph_file,
257 const char *dot_file);
273 int pcmk_verify(xmlNodePtr *xml,
const char *cib_source);
307 const char **rule_ids);
321 pcmk_check_rule(xmlNodePtr *xml, xmlNodePtr
input,
const crm_time_t *date,
324 const char *rule_ids[] = {rule_id, NULL};
483 const char *attr_name,
const char *attr_default);
545 #ifdef BUILD_PUBLIC_LIBPACEMAKER 590 unsigned int timeout,
bool quiet,
int verbose,
591 bool broadcast,
bool cleanup);
615 int pcmk_fence_last(xmlNodePtr *xml,
const char *
target,
bool as_nodeid);
628 int pcmk_fence_list_targets(xmlNodePtr *xml,
stonith_t *
st,
629 const char *device_id,
unsigned int timeout);
645 int pcmk_fence_metadata(xmlNodePtr *xml,
stonith_t *
st,
const char *agent,
705 int pcmk_fence_validate(xmlNodePtr *xml,
stonith_t *
st,
const char *agent,
int pcmk_ticket_constraints(xmlNodePtr *xml, const char *ticket_id)
Return constraints that apply to the given ticket.
int pcmk_list_result_codes(xmlNodePtr *xml, enum pcmk_result_type type, uint32_t flags)
List all valid result codes in a particular family.
struct crm_time_s crm_time_t
int pcmk_ticket_info(xmlNodePtr *xml, const char *ticket_id)
Return information about the given ticket.
Data types for Cluster Information Base access.
int pcmk_query_node_info(xmlNodePtr *xml, uint32_t *node_id, char **node_name, char **uuid, char **state, bool *have_quorum, bool *is_remote, bool show_output, unsigned int message_timeout_ms)
Get and optionally output node info corresponding to a node ID from the controller.
int pcmk_designated_controller(xmlNodePtr *xml, unsigned int message_timeout_ms)
Get and output designated controller node name.
int pcmk_ticket_get_attr(xmlNodePtr *xml, const char *ticket_id, const char *attr_name, const char *attr_default)
Return the value of a ticket's attribute.
int pcmk_status(xmlNodePtr *xml)
Output cluster status formatted like crm_mon --output-as=xml
int pcmk_list_nodes(xmlNodePtr *xml, const char *node_types)
Get nodes list.
enum crm_ais_msg_types type
pcmk_rc_disp_flags
Bit flags to control which fields of result code info are displayed.
int pcmk_list_primitive_meta(xmlNode **xml, bool all)
int pcmk_verify(xmlNodePtr *xml, const char *cib_source)
Verify that a CIB is error-free or output errors and warnings.
int pcmk_ticket_set_attr(xmlNodePtr *xml, const char *ticket_id, GHashTable *attr_set, bool force)
Set the given attribute(s) on a ticket.
int pcmk_ticket_delete(xmlNodePtr *xml, const char *ticket_id, bool force)
Delete a ticket's state from the local cluster site.
Display result code description.
int pcmk_list_standards(xmlNodePtr *xml)
List all available resource agent standards.
int pcmk_simulate(xmlNodePtr *xml, pcmk_scheduler_t *scheduler, const pcmk_injections_t *injections, unsigned int flags, unsigned int section_opts, const char *use_date, const char *input_file, const char *graph_file, const char *dot_file)
Simulate a cluster's response to events.
int pcmk_ticket_remove_attr(xmlNodePtr *xml, const char *ticket_id, GList *attr_delete, bool force)
Remove the given attribute(s) from a ticket.
int pcmk_list_cluster_options(xmlNode **xml, bool all)
List all available cluster options.
int pcmk_pacemakerd_status(xmlNodePtr *xml, const char *ipc_name, unsigned int message_timeout_ms)
Get and output pacemakerd status.
void pcmk_free_injections(pcmk_injections_t *injections)
Free a :pcmk_injections_t structure.
int pcmk_list_providers(xmlNodePtr *xml, const char *agent_spec)
List all available OCF providers for the given agent.
int pcmk_list_fencing_params(xmlNode **xml, bool all)
List common fencing resource parameters.
Display result code name.
int pcmk_controller_status(xmlNodePtr *xml, const char *node_name, unsigned int message_timeout_ms)
Get and output controller status.
pcmk_scheduler_t * scheduler
int pcmk_ticket_state(xmlNodePtr *xml, const char *ticket_id)
Return a ticket's state XML.
int pcmk_list_alternatives(xmlNodePtr *xml, const char *agent_spec)
List available providers for the given OCF agent.
Synthetic cluster events that can be injected into the cluster for running simulations.
int pcmk_check_rules(xmlNodePtr *xml, xmlNodePtr input, const crm_time_t *date, const char **rule_ids)
Check whether each rule in a list is in effect.
int pcmk_resource_digests(xmlNodePtr *xml, pcmk_resource_t *rsc, const pcmk_node_t *node, GHashTable *overrides)
Calculate and output resource operation digests.
Display result code number.
int pcmk_show_result_code(xmlNodePtr *xml, int code, enum pcmk_result_type type, uint32_t flags)
Display the name and/or description of a result code.
int pcmk_list_agents(xmlNodePtr *xml, char *agent_spec)
List all agents available for the named standard and/or provider.
pcmk_sim_flags
Modify operation of running a cluster simulation.
pcmk_result_type
Types of Pacemaker result codes.
int pcmk_resource_delete(xmlNodePtr *xml, const char *rsc_id, const char *rsc_type)
Remove a resource.