pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
fencing_private.h
Go to the documentation of this file.
1 /*
2  * Copyright 2018-2021 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU Lesser General Public License
7  * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__FENCING_PRIVATE__H
11 # define PCMK__FENCING_PRIVATE__H
12 
13 G_GNUC_INTERNAL
15 
16 // Utilities from st_rhcs.c
17 
18 G_GNUC_INTERNAL
20 
21 G_GNUC_INTERNAL
22 int stonith__rhcs_metadata(const char *agent, int timeout, char **output);
23 
24 G_GNUC_INTERNAL
25 bool stonith__agent_is_rhcs(const char *agent);
26 
27 G_GNUC_INTERNAL
28 int stonith__rhcs_validate(stonith_t *st, int call_options, const char *target,
29  const char *agent, GHashTable *params,
30  const char *host_arg, int timeout,
31  char **output, char **error_output);
32 
33 #ifdef HAVE_STONITH_STONITH_H
34 // Utilities from st_lha.c
35 
36 G_GNUC_INTERNAL
38 
39 G_GNUC_INTERNAL
40 int stonith__lha_metadata(const char *agent, int timeout, char **output);
41 
42 G_GNUC_INTERNAL
43 bool stonith__agent_is_lha(const char *agent);
44 
45 G_GNUC_INTERNAL
46 int stonith__lha_validate(stonith_t *st, int call_options, const char *target,
47  const char *agent, GHashTable *params,
48  int timeout, char **output, char **error_output);
49 #endif
50 
51 #endif // PCMK__FENCING_PRIVATE__H
struct stonith_action_s stonith_action_t
Definition: internal.h:51
int stonith__lha_validate(stonith_t *st, int call_options, const char *target, const char *agent, GHashTable *params, int timeout, char **output, char **error_output)
Definition: st_lha.c:275
int stonith__lha_metadata(const char *agent, int timeout, char **output)
Definition: st_lha.c:170
const char * action
Definition: pcmk_fence.c:30
int stonith__list_lha_agents(stonith_key_value_t **devices)
Definition: st_lha.c:110
stonith_t * st
Definition: pcmk_fence.c:28
G_GNUC_INTERNAL int stonith__rhcs_validate(stonith_t *st, int call_options, const char *target, const char *agent, GHashTable *params, const char *host_arg, int timeout, char **output, char **error_output)
Definition: st_rhcs.c:257
G_GNUC_INTERNAL bool stonith__agent_is_rhcs(const char *agent)
Definition: st_rhcs.c:246
const char * target
Definition: pcmk_fence.c:29
G_GNUC_INTERNAL int stonith__list_rhcs_agents(stonith_key_value_t **devices)
Definition: st_rhcs.c:35
G_GNUC_INTERNAL int stonith__rhcs_metadata(const char *agent, int timeout, char **output)
Retrieve metadata for RHCS-compatible fence agent.
Definition: st_rhcs.c:220
bool stonith__agent_is_lha(const char *agent)
Definition: st_lha.c:83
unsigned int timeout
Definition: pcmk_fence.c:32
G_GNUC_INTERNAL int stonith__execute(stonith_action_t *action)
Definition: st_actions.c:698