pacemaker 2.1.5-a3f44794f94
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
13G_GNUC_INTERNAL
15
16// Utilities from st_rhcs.c
17
18G_GNUC_INTERNAL
20
21G_GNUC_INTERNAL
22int stonith__rhcs_metadata(const char *agent, int timeout, char **output);
23
24G_GNUC_INTERNAL
25bool stonith__agent_is_rhcs(const char *agent);
26
27G_GNUC_INTERNAL
28int 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
36G_GNUC_INTERNAL
38
39G_GNUC_INTERNAL
40int stonith__lha_metadata(const char *agent, int timeout, char **output);
41
42G_GNUC_INTERNAL
43bool stonith__agent_is_lha(const char *agent);
44
45G_GNUC_INTERNAL
46int 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
G_GNUC_INTERNAL bool stonith__agent_is_rhcs(const char *agent)
Definition: st_rhcs.c:243
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:254
G_GNUC_INTERNAL int stonith__list_rhcs_agents(stonith_key_value_t **devices)
Definition: st_rhcs.c:35
G_GNUC_INTERNAL int stonith__execute(stonith_action_t *action)
Definition: st_actions.c:698
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:217
unsigned int timeout
Definition: pcmk_fence.c:32
stonith_t * st
Definition: pcmk_fence.c:28
const char * action
Definition: pcmk_fence.c:30
const char * target
Definition: pcmk_fence.c:29
int stonith__lha_metadata(const char *agent, int timeout, char **output)
Definition: st_lha.c:170
int stonith__list_lha_agents(stonith_key_value_t **devices)
Definition: st_lha.c:110
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
bool stonith__agent_is_lha(const char *agent)
Determine namespace of a fence agent.
Definition: st_lha.c:83