![]() |
pacemaker
1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
|
#include <stonith-ng.h>
Data Fields | |
| int(* | free )(stonith_t *st) |
| Destroy the stonith api structure. More... | |
| int(* | connect )(stonith_t *st, const char *name, int *stonith_fd) |
| Connect to the local stonith daemon. More... | |
| int(* | disconnect )(stonith_t *st) |
| Disconnect from the local stonith daemon. More... | |
| int(* | remove_device )(stonith_t *st, int options, const char *name) |
| Remove a registered stonith device with the local stonith daemon. More... | |
| int(* | register_device )(stonith_t *st, int options, const char *id, const char *namespace, const char *agent, stonith_key_value_t *params) |
| Register a stonith device with the local stonith daemon. More... | |
| int(* | remove_level )(stonith_t *st, int options, const char *node, int level) |
| Remove a fencing level for a specific node. More... | |
| int(* | register_level )(stonith_t *st, int options, const char *node, int level, stonith_key_value_t *device_list) |
| Register a fencing level containing the fencing devices to be used at that level for a specific node. More... | |
| int(* | metadata )(stonith_t *st, int options, const char *device, const char *namespace, char **output, int timeout) |
| Get the metadata documentation for a resource. More... | |
| int(* | list_agents )(stonith_t *stonith, int call_options, const char *namespace, stonith_key_value_t **devices, int timeout) |
| Retrieve a list of installed stonith agents. More... | |
| int(* | list )(stonith_t *st, int options, const char *id, char **list_output, int timeout) |
| Retrieve string listing hosts and port assignments from a local stonith device. More... | |
| int(* | monitor )(stonith_t *st, int options, const char *id, int timeout) |
| Check to see if a local stonith device is reachable. More... | |
| int(* | status )(stonith_t *st, int options, const char *id, const char *port, int timeout) |
| Check to see if a local stonith device's port is reachable. More... | |
| int(* | query )(stonith_t *st, int options, const char *node, stonith_key_value_t **devices, int timeout) |
| Retrieve a list of registered stonith devices. More... | |
| int(* | fence )(stonith_t *st, int options, const char *node, const char *action, int timeout, int tolerance) |
| Issue a fencing action against a node. More... | |
| int(* | confirm )(stonith_t *st, int options, const char *node) |
| Manually confirm that a node is down. More... | |
| int(* | history )(stonith_t *st, int options, const char *node, stonith_history_t **output, int timeout) |
| Retrieve a list of fencing operations that have occurred for a specific node. More... | |
| int(* | register_notification )(stonith_t *st, const char *event, void(*notify)(stonith_t *st, stonith_event_t *e)) |
| int(* | remove_notification )(stonith_t *st, const char *event) |
| int(* | register_callback )(stonith_t *st, int call_id, int timeout, int options, void *userdata, const char *callback_name, void(*callback)(stonith_t *st, stonith_callback_data_t *data)) |
| Register a callback to receive the result of an async call id. More... | |
| int(* | remove_callback )(stonith_t *st, int call_id, bool all_callbacks) |
| Remove a registered callback for a given call id. More... | |
| int(* | remove_level_full )(stonith_t *st, int options, const char *node, const char *pattern, const char *attr, const char *value, int level) |
| Remove fencing level for specific node, node regex or attribute. More... | |
| int(* | register_level_full )(stonith_t *st, int options, const char *node, const char *pattern, const char *attr, const char *value, int level, stonith_key_value_t *device_list) |
| Register fencing level for specific node, node regex or attribute. More... | |
Definition at line 121 of file stonith-ng.h.
| int(* stonith_api_operations_s::confirm)(stonith_t *st, int options, const char *node) |
Manually confirm that a node is down.
| 0 | success |
| negative | error code on failure. |
Definition at line 274 of file stonith-ng.h.
| int(* stonith_api_operations_s::connect)(stonith_t *st, const char *name, int *stonith_fd) |
Connect to the local stonith daemon.
| 0,success | |
| negative | error code on failure |
Definition at line 134 of file stonith-ng.h.
| int(* stonith_api_operations_s::disconnect)(stonith_t *st) |
Disconnect from the local stonith daemon.
| 0,success | |
| negative | error code on failure |
Definition at line 142 of file stonith-ng.h.
| int(* stonith_api_operations_s::fence)(stonith_t *st, int options, const char *node, const char *action, int timeout, int tolerance) |
Issue a fencing action against a node.
| st,stonith | connection |
| options,call | options |
| node,The | target node to fence |
| action,The | fencing action to take |
| timeout,The | default per device timeout to use with each device capable of fencing the target. |
| 0 | success |
| negative | error code on failure. |
Definition at line 265 of file stonith-ng.h.
| int(* stonith_api_operations_s::free)(stonith_t *st) |
Destroy the stonith api structure.
Definition at line 126 of file stonith-ng.h.
| int(* stonith_api_operations_s::history)(stonith_t *st, int options, const char *node, stonith_history_t **output, int timeout) |
Retrieve a list of fencing operations that have occurred for a specific node.
| 0 | success |
| negative | error code on failure. |
Definition at line 284 of file stonith-ng.h.
| int(* stonith_api_operations_s::list)(stonith_t *st, int options, const char *id, char **list_output, int timeout) |
Retrieve string listing hosts and port assignments from a local stonith device.
| 0 | on success |
| negative | error code on failure |
Definition at line 220 of file stonith-ng.h.
| int(* stonith_api_operations_s::list_agents)(stonith_t *stonith, int call_options, const char *namespace, stonith_key_value_t **devices, int timeout) |
Retrieve a list of installed stonith agents.
| num | items in list on success |
| negative | error code on failure |
Definition at line 211 of file stonith-ng.h.
| int(* stonith_api_operations_s::metadata)(stonith_t *st, int options, const char *device, const char *namespace, char **output, int timeout) |
Get the metadata documentation for a resource.
| 0 | success |
| negative | error code on failure |
Definition at line 198 of file stonith-ng.h.
Check to see if a local stonith device is reachable.
| 0 | on success |
| negative | error code on failure |
Definition at line 228 of file stonith-ng.h.
| int(* stonith_api_operations_s::query)(stonith_t *st, int options, const char *node, stonith_key_value_t **devices, int timeout) |
Retrieve a list of registered stonith devices.
| num | items in list on success |
| negative | error code on failure |
Definition at line 247 of file stonith-ng.h.
| int(* stonith_api_operations_s::register_callback)(stonith_t *st, int call_id, int timeout, int options, void *userdata, const char *callback_name, void(*callback)(stonith_t *st, stonith_callback_data_t *data)) |
Register a callback to receive the result of an async call id.
| call_id,The | call id to register the callback for. |
| timeout,The | default timeout period to wait until this callback expires |
| options,Option | flags, st_opt_timeout_updates and st_opt_report_only_success are the only valid options for this function. |
| userdate,A | pointer that will be handed back in the callback. |
| callback_name,Unique | name given to callback |
| callback,The | callback function |
| 0 | success |
| negative | error code on failure. |
Definition at line 305 of file stonith-ng.h.
| int(* stonith_api_operations_s::register_device)(stonith_t *st, int options, const char *id, const char *namespace, const char *agent, stonith_key_value_t *params) |
Register a stonith device with the local stonith daemon.
| 0,success | |
| negative | error code on failure |
Definition at line 163 of file stonith-ng.h.
| int(* stonith_api_operations_s::register_level)(stonith_t *st, int options, const char *node, int level, stonith_key_value_t *device_list) |
Register a fencing level containing the fencing devices to be used at that level for a specific node.
| 0,success | |
| negative | error code on failure |
Definition at line 187 of file stonith-ng.h.
| int(* stonith_api_operations_s::register_level_full)(stonith_t *st, int options, const char *node, const char *pattern, const char *attr, const char *value, int level, stonith_key_value_t *device_list) |
Register fencing level for specific node, node regex or attribute.
| [in] | st | Stonithd connection to use |
| [in] | options | Bitmask of stonith_call_options to pass to stonithd |
| [in] | node | If not NULL, target level by this node name |
| [in] | pattern | If not NULL, target by node name using this regex |
| [in] | attr | If not NULL, target by this node attribute |
| [in] | value | If not NULL, target by this node attribute value |
| [in] | level | Index number of level to add |
| [in] | device_list | Devices to use in level |
Definition at line 355 of file stonith-ng.h.
| int(* stonith_api_operations_s::register_notification)(stonith_t *st, const char *event, void(*notify)(stonith_t *st, stonith_event_t *e)) |
Definition at line 286 of file stonith-ng.h.
| int(* stonith_api_operations_s::remove_callback)(stonith_t *st, int call_id, bool all_callbacks) |
Remove a registered callback for a given call id.
Definition at line 316 of file stonith-ng.h.
| int(* stonith_api_operations_s::remove_device)(stonith_t *st, int options, const char *name) |
Remove a registered stonith device with the local stonith daemon.
| 0,success | |
| negative | error code on failure |
Definition at line 152 of file stonith-ng.h.
| int(* stonith_api_operations_s::remove_level)(stonith_t *st, int options, const char *node, int level) |
Remove a fencing level for a specific node.
| 0,success | |
| negative | error code on failure |
Definition at line 175 of file stonith-ng.h.
| int(* stonith_api_operations_s::remove_level_full)(stonith_t *st, int options, const char *node, const char *pattern, const char *attr, const char *value, int level) |
Remove fencing level for specific node, node regex or attribute.
| [in] | st | Stonithd connection to use |
| [in] | options | Bitmask of stonith_call_options to pass to stonithd |
| [in] | node | If not NULL, target level by this node name |
| [in] | pattern | If not NULL, target by node name using this regex |
| [in] | attr | If not NULL, target by this node attribute |
| [in] | value | If not NULL, target by this node attribute value |
| [in] | level | Index number of level to remove |
Definition at line 334 of file stonith-ng.h.
| int(* stonith_api_operations_s::remove_notification)(stonith_t *st, const char *event) |
Definition at line 289 of file stonith-ng.h.
| int(* stonith_api_operations_s::status)(stonith_t *st, int options, const char *id, const char *port, int timeout) |
Check to see if a local stonith device's port is reachable.
| 0 | on success |
| negative | error code on failure |
Definition at line 236 of file stonith-ng.h.
1.8.5