![]()  | 
  
    pacemaker
    3.0.0-d8340737c4
    
   Scalable High-Availability cluster resource manager 
   | 
 
#include <include/crm/stonith-ng.h>
Data Fields | |
| int(* | free )(stonith_t *st) | 
| Destroy a fencer connection.  More... | |
| int(* | connect )(stonith_t *st, const char *name, int *stonith_fd) | 
| Connect to the local fencer.  More... | |
| int(* | disconnect )(stonith_t *st) | 
| Disconnect from the local stonith daemon.  More... | |
| int(* | remove_device )(stonith_t *st, int options, const char *name) | 
| Unregister a fence device with the local fencer.  More... | |
| int(* | register_device )(stonith_t *st, int options, const char *id, const char *namespace_s, const char *agent, const stonith_key_value_t *params) | 
| Register a fence device with the local fencer.  More... | |
| int(* | remove_level )(stonith_t *st, int options, const char *node, int level) | 
| Unregister a fencing level for specified node with local fencer.  More... | |
| int(* | register_level )(stonith_t *st, int options, const char *node, int level, const stonith_key_value_t *device_list) | 
| Register a fencing level for specified node with local fencer.  More... | |
| int(* | metadata )(stonith_t *stonith, int call_options, const char *agent, const char *namespace_s, char **output, int timeout_sec) | 
| Retrieve a fence agent's metadata.  More... | |
| int(* | list_agents )(stonith_t *stonith, int call_options, const char *namespace_s, stonith_key_value_t **devices, int timeout) | 
| Retrieve a list of installed fence agents.  More... | |
| int(* | list )(stonith_t *stonith, int call_options, const char *id, char **list_info, int timeout) | 
| Get the output of a fence device's list action.  More... | |
| int(* | monitor )(stonith_t *stonith, int call_options, const char *id, int timeout) | 
| Check whether a fence device is reachable by monitor action.  More... | |
| int(* | status )(stonith_t *stonith, int call_options, const char *id, const char *port, int timeout) | 
| Check whether a fence device target is reachable by status action.  More... | |
| int(* | query )(stonith_t *stonith, int call_options, const char *target, stonith_key_value_t **devices, int timeout) | 
| List registered fence devices.  More... | |
| int(* | fence )(stonith_t *stonith, int call_options, const char *node, const char *action, int timeout, int tolerance) | 
| Request that a target get fenced.  More... | |
| int(* | confirm )(stonith_t *stonith, int call_options, const char *target) | 
| Manually confirm that a node has been fenced.  More... | |
| int(* | history )(stonith_t *stonith, int call_options, const char *node, stonith_history_t **history, int timeout) | 
| List fencing actions that have occurred for a target.  More... | |
| int(* | register_notification )(stonith_t *stonith, const char *event, void(*callback)(stonith_t *st, stonith_event_t *e)) | 
| Register a callback for fence notifications.  More... | |
| int(* | remove_notification )(stonith_t *stonith, const char *event) | 
| Unregister callbacks for fence notifications.  More... | |
| int(* | register_callback )(stonith_t *stonith, int call_id, int timeout, int options, void *user_data, const char *callback_name, void(*callback)(stonith_t *st, stonith_callback_data_t *data)) | 
| Register a callback for an asynchronous fencing result.  More... | |
| int(* | remove_callback )(stonith_t *stonith, int call_id, bool all_callbacks) | 
| Unregister callbacks for asynchronous fencing results.  More... | |
| int(* | remove_level_full )(stonith_t *st, int options, const char *node, const char *pattern, const char *attr, const char *value, int level) | 
| Unregister fencing level for specified node, pattern 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, const stonith_key_value_t *device_list) | 
| Register fencing level for specified node, pattern or attribute.  More... | |
| int(* | validate )(stonith_t *st, int call_options, const char *rsc_id, const char *namespace_s, const char *agent, const stonith_key_value_t *params, int timeout, char **output, char **error_output) | 
| Validate an arbitrary stonith device configuration.  More... | |
| int(* | fence_with_delay )(stonith_t *stonith, int call_options, const char *node, const char *action, int timeout, int tolerance, int delay) | 
| Request delayed fencing of a target.  More... | |
Definition at line 171 of file stonith-ng.h.
Manually confirm that a node has been fenced.
| [in,out] | stonith | Fencer connection to use | 
| [in] | call_options | Group of enum stonith_call_options | 
| [in] | target | Fence target | 
Definition at line 393 of file stonith-ng.h.
Connect to the local fencer.
| [in,out] | st | Fencer connection to connect | 
| [in] | name | Client name to use | 
| [out] | stonith_fd | If NULL, use a main loop, otherwise store IPC file descriptor here | 
Definition at line 190 of file stonith-ng.h.
Disconnect from the local stonith daemon.
| [in,out] | st | Fencer connection to disconnect | 
Definition at line 199 of file stonith-ng.h.
| int(* stonith_api_operations_s::fence) (stonith_t *stonith, int call_options, const char *node, const char *action, int timeout, int tolerance) | 
Request that a target get fenced.
| [in,out] | stonith | Fencer connection to use | 
| [in] | call_options | Group of enum stonith_call_options | 
| [in] | node | Fence target | 
| [in] | action | "on", "off", or "reboot" | 
| [in] | timeout | Default per-device timeout to use with each executed device | 
| [in] | tolerance | Accept result of identical fence action completed within this time | 
Definition at line 380 of file stonith-ng.h.
| int(* stonith_api_operations_s::fence_with_delay) (stonith_t *stonith, int call_options, const char *node, const char *action, int timeout, int tolerance, int delay) | 
Request delayed fencing of a target.
| [in,out] | stonith | Fencer connection to use | 
| [in] | call_options | Group of enum stonith_call_options | 
| [in] | node | Fence target | 
| [in] | action | "on", "off", or "reboot" | 
| [in] | timeout | Default per-device timeout to use with each executed device | 
| [in] | tolerance | Accept result of identical fence action completed within this time | 
| [in] | delay | Execute fencing after this delay (-1 disables any delay from pcmk_delay_base and pcmk_delay_max) | 
Definition at line 563 of file stonith-ng.h.
Destroy a fencer connection.
| [in,out] | st | Fencer connection to destroy | 
Definition at line 178 of file stonith-ng.h.
| int(* stonith_api_operations_s::history) (stonith_t *stonith, int call_options, const char *node, stonith_history_t **history, int timeout) | 
List fencing actions that have occurred for a target.
| [in,out] | stonith | Fencer connection to use | 
| [in] | call_options | Group of enum stonith_call_options | 
| [in] | node | Fence target | 
| [out] | history | Where to store list of fencing actions | 
| [in] | timeout | Error if unable to complete within this | 
Definition at line 406 of file stonith-ng.h.
| int(* stonith_api_operations_s::list) (stonith_t *stonith, int call_options, const char *id, char **list_info, int timeout) | 
Get the output of a fence device's list action.
| [in,out] | stonith | Fencer connection to use | 
| [in] | call_options | Group of enum stonith_call_options | 
| [in] | id | Fence device ID to run list for | 
| [out] | list_info | Where to store list output | 
| [in] | timeout | Error if unable to complete within this | 
Definition at line 316 of file stonith-ng.h.
| int(* stonith_api_operations_s::list_agents) (stonith_t *stonith, int call_options, const char *namespace_s, stonith_key_value_t **devices, int timeout) | 
Retrieve a list of installed fence agents.
| [in,out] | stonith | Fencer connection to use | 
| [in] | call_options | Group of enum stonith_call_options (currently ignored) | 
| [in] | namespace_s | Type of fence agents to list ("redhat" or "stonith-ng" for RHCS-style, "internal" for Pacemaker-internal devices, "heartbeat" for LHA-style, or "any" or NULL for all) | 
| [out] | devices | Where to store agent list | 
| [in] | timeout | Error if unable to complete within this (currently ignored) | 
Definition at line 300 of file stonith-ng.h.
| int(* stonith_api_operations_s::metadata) (stonith_t *stonith, int call_options, const char *agent, const char *namespace_s, char **output, int timeout_sec) | 
Retrieve a fence agent's metadata.
| [in,out] | stonith | Fencer connection | 
| [in] | call_options | Group of enum stonith_call_options (currently ignored) | 
| [in] | agent | Fence agent to query | 
| [in] | namespace_s | Type of fence agent to search for ("redhat" or "stonith-ng" for RHCS-style, "internal" for Pacemaker-internal devices, "heartbeat" for LHA-style, or "any" or NULL for any) | 
| [out] | output | Where to store metadata | 
| [in] | timeout_sec | Error if not complete within this time | 
Definition at line 279 of file stonith-ng.h.
| int(* stonith_api_operations_s::monitor) (stonith_t *stonith, int call_options, const char *id, int timeout) | 
Check whether a fence device is reachable by monitor action.
| [in,out] | stonith | Fencer connection to use | 
| [in] | call_options | Group of enum stonith_call_options | 
| [in] | id | Fence device ID to run monitor for | 
| [in] | timeout | Error if unable to complete within this | 
Definition at line 330 of file stonith-ng.h.
| int(* stonith_api_operations_s::query) (stonith_t *stonith, int call_options, const char *target, stonith_key_value_t **devices, int timeout) | 
List registered fence devices.
| [in,out] | stonith | Fencer connection to use | 
| [in] | call_options | Group of enum stonith_call_options | 
| [in] | target | Fence target to run status for | 
| [out] | devices | Where to store list of fence devices | 
| [in] | timeout | Error if unable to complete within this | 
Definition at line 362 of file stonith-ng.h.
| int(* stonith_api_operations_s::register_callback) (stonith_t *stonith, int call_id, int timeout, int options, void *user_data, const char *callback_name, void(*callback)(stonith_t *st, stonith_callback_data_t *data)) | 
Register a callback for an asynchronous fencing result.
| [in,out] | stonith | Fencer connection to use | 
| [in] | call_id | Call ID to register callback for | 
| [in] | timeout | Error if result not received in this time | 
| [in] | options | Group of enum stonith_call_options (respects st_opt_timeout_updates and st_opt_report_only_success)  | 
| [in,out] | user_data | Pointer to pass to callback | 
| [in] | callback_name | Unique identifier for callback | 
| [in] | callback | Callback to register (may be called immediately if call_id indicates error) | 
TRUE on success, FALSE if call_id indicates error, or -EINVAL if stonith is not valid Definition at line 449 of file stonith-ng.h.
| int(* stonith_api_operations_s::register_device) (stonith_t *st, int options, const char *id, const char *namespace_s, const char *agent, const stonith_key_value_t *params) | 
Register a fence device with the local fencer.
| [in,out] | st | Fencer connection to use | 
| [in] | options | Group of enum stonith_call_options | 
| [in] | id | ID of fence device to register | 
| [in] | namespace_s | Type of fence agent to search for ("redhat" or "stonith-ng" for RHCS-style, "internal" for Pacemaker-internal devices, "heartbeat" for LHA-style, or "any" or NULL for any) | 
| [in] | agent | Name of fence agent for device | 
| [in] | params | Fence agent parameters for device | 
Definition at line 229 of file stonith-ng.h.
| int(* stonith_api_operations_s::register_level) (stonith_t *st, int options, const char *node, int level, const stonith_key_value_t *device_list) | 
Register a fencing level for specified node with local fencer.
| [in,out] | st | Fencer connection to use | 
| [in] | options | Group of enum stonith_call_options | 
| [in] | node | Target node to register level for | 
| [in] | level | Topology level number to register | 
| [in] | device_list | Devices to register in level | 
Definition at line 259 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, const stonith_key_value_t *device_list) | 
Register fencing level for specified node, pattern or attribute.
| [in,out] | st | Fencer connection to use | 
| [in] | options | Group of enum stonith_call_options | 
| [in] | node | If not NULL, register level targeting this node by name | 
| [in] | pattern | If not NULL, register level targeting nodes whose names match this regular expression | 
| [in] | attr | If this and value are not NULL, register level targeting nodes with this node attribute set to value  | 
| [in] | value | If this and attr are not NULL, register level targeting nodes with node attribute attr set to this  | 
| [in] | level | Topology level number to remove | 
| [in] | device_list | Devices to use in level | 
Definition at line 515 of file stonith-ng.h.
| int(* stonith_api_operations_s::register_notification) (stonith_t *stonith, const char *event, void(*callback)(stonith_t *st, stonith_event_t *e)) | 
Register a callback for fence notifications.
| [in,out] | stonith | Fencer connection to use | 
| [in] | event | Event to register for | 
| [in] | callback | Callback to register | 
Definition at line 418 of file stonith-ng.h.
| int(* stonith_api_operations_s::remove_callback) (stonith_t *stonith, int call_id, bool all_callbacks) | 
Unregister callbacks for asynchronous fencing results.
| [in,out] | stonith | Fencer connection to use | 
| [in] | call_id | If all_callbacks is false, call ID to unregister callback for  | 
| [in] | all_callbacks | If true, unregister all callbacks | 
Definition at line 465 of file stonith-ng.h.
Unregister a fence device with the local fencer.
| [in,out] | st | Fencer connection to disconnect | 
| [in] | options | Group of enum stonith_call_options | 
| [in] | name | ID of fence device to unregister | 
Definition at line 211 of file stonith-ng.h.
| int(* stonith_api_operations_s::remove_level) (stonith_t *st, int options, const char *node, int level) | 
Unregister a fencing level for specified node with local fencer.
| [in,out] | st | Fencer connection to use | 
| [in] | options | Group of enum stonith_call_options | 
| [in] | node | Target node to unregister level for | 
| [in] | level | Topology level number to unregister | 
Definition at line 244 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) | 
Unregister fencing level for specified node, pattern or attribute.
| [in,out] | st | Fencer connection to use | 
| [in] | options | Group of enum stonith_call_options | 
| [in] | node | If not NULL, unregister level targeting this node | 
| [in] | pattern | If not NULL, unregister level targeting nodes whose names match this regular expression | 
| [in] | attr | If this and value are not NULL, unregister level targeting nodes with this node attribute set to value  | 
| [in] | value | If this and attr are not NULL, unregister level targeting nodes with node attribute attr set to this  | 
| [in] | level | Topology level number to remove | 
node, pattern, or attr and value. Definition at line 488 of file stonith-ng.h.
| int(* stonith_api_operations_s::remove_notification) (stonith_t *stonith, const char *event) | 
Unregister callbacks for fence notifications.
| [in,out] | stonith | Fencer connection to use | 
| [in] | event | Event to unregister callbacks for (NULL for all) | 
Definition at line 430 of file stonith-ng.h.
| int(* stonith_api_operations_s::status) (stonith_t *stonith, int call_options, const char *id, const char *port, int timeout) | 
Check whether a fence device target is reachable by status action.
| [in,out] | stonith | Fencer connection to use | 
| [in] | call_options | Group of enum stonith_call_options | 
| [in] | id | Fence device ID to run status for | 
| [in] | port | Fence target to run status for | 
| [in] | timeout | Error if unable to complete within this | 
Definition at line 345 of file stonith-ng.h.
| int(* stonith_api_operations_s::validate) (stonith_t *st, int call_options, const char *rsc_id, const char *namespace_s, const char *agent, const stonith_key_value_t *params, int timeout, char **output, char **error_output) | 
Validate an arbitrary stonith device configuration.
| [in,out] | st | Fencer connection to use | 
| [in] | call_options | Group of enum stonith_call_options | 
| [in] | rsc_id | ID used to replace CIB secrets in params  | 
| [in] | namespace_s | Type of fence agent to validate ("redhat" or "stonith-ng" for RHCS-style, "internal" for Pacemaker-internal devices, "heartbeat" for LHA-style, or "any" or NULL for any) | 
| [in] | agent | Fence agent to validate | 
| [in] | params | Configuration parameters to pass to agent | 
| [in] | timeout | Fail if no response within this many seconds | 
| [out] | output | If non-NULL, where to store any agent output | 
| [out] | error_output | If non-NULL, where to store agent error output | 
Definition at line 540 of file stonith-ng.h.
 1.8.14