pacemaker  2.1.3-ea053b43a
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:50
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:272
int stonith__lha_metadata(const char *agent, int timeout, char **output)
Definition: st_lha.c:170
const char * action
Definition: pcmk_fence.c:29
int stonith__list_lha_agents(stonith_key_value_t **devices)
Definition: st_lha.c:110
stonith_t * st
Definition: pcmk_fence.c:27
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:256
G_GNUC_INTERNAL bool stonith__agent_is_rhcs(const char *agent)
Definition: st_rhcs.c:245
const char * target
Definition: pcmk_fence.c:28
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)
Execute RHCS-compatible agent's meta-data action.
Definition: st_rhcs.c:219
bool stonith__agent_is_lha(const char *agent)
Determine namespace of a fence agent.
Definition: st_lha.c:83
unsigned int timeout
Definition: pcmk_fence.c:31
G_GNUC_INTERNAL int stonith__execute(stonith_action_t *action)
Definition: st_actions.c:673