pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
fencing_private.h
Go to the documentation of this file.
1/*
2 * Copyright 2018-2024 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_FENCING_PRIVATE__H
11#define PCMK__FENCING_FENCING_PRIVATE__H
12
13#include <stdbool.h> // bool
14
15#include <glib.h> // G_GNUC_INTERNAL, GHashTable
16
17#include <crm/stonith-ng.h> // stonith_t, stonith_key_value_t
18#include <crm/fencing/internal.h> // stonith_action_t
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24G_GNUC_INTERNAL
26
27// Utilities from st_rhcs.c
28
29G_GNUC_INTERNAL
31
32G_GNUC_INTERNAL
33int stonith__rhcs_metadata(const char *agent, int timeout, char **output);
34
35G_GNUC_INTERNAL
36bool stonith__agent_is_rhcs(const char *agent);
37
38G_GNUC_INTERNAL
39int stonith__rhcs_validate(stonith_t *st, int call_options, const char *target,
40 const char *agent, GHashTable *params,
41 const char *host_arg, int timeout,
42 char **output, char **error_output);
43
44#ifdef HAVE_STONITH_STONITH_H
45// Utilities from st_lha.c
46
47G_GNUC_INTERNAL
49
50G_GNUC_INTERNAL
51int stonith__lha_metadata(const char *agent, int timeout, char **output);
52
53G_GNUC_INTERNAL
54bool stonith__agent_is_lha(const char *agent);
55
56G_GNUC_INTERNAL
57int stonith__lha_validate(stonith_t *st, int call_options, const char *target,
58 const char *agent, GHashTable *params,
59 int timeout, char **output, char **error_output);
60#endif
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif // PCMK__FENCING_FENCING_PRIVATE__H
struct stonith_action_s stonith_action_t
Definition internal.h:55
G_GNUC_INTERNAL bool stonith__agent_is_rhcs(const char *agent)
Definition st_rhcs.c:257
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:268
G_GNUC_INTERNAL int stonith__list_rhcs_agents(stonith_key_value_t **devices)
Definition st_rhcs.c:69
G_GNUC_INTERNAL int stonith__execute(stonith_action_t *action)
Definition st_actions.c:706
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:225
unsigned int timeout
Definition pcmk_fence.c:34
stonith_t * st
Definition pcmk_fence.c:30
const char * action
Definition pcmk_fence.c:32
const char * target
Definition pcmk_fence.c:31
int stonith__lha_metadata(const char *agent, int timeout, char **output)
Definition st_lha.c:179
int stonith__list_lha_agents(stonith_key_value_t **devices)
Definition st_lha.c:119
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:302
bool stonith__agent_is_lha(const char *agent)
Definition st_lha.c:92
Fencing aka. STONITH.
Key-value pair list node.
Definition stonith-ng.h:162
Fencer API connection object.
Definition stonith-ng.h:657