pacemaker 2.1.7-2.1.7
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
remote_internal.h
Go to the documentation of this file.
1/*
2 * Copyright 2013-2023 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 PE_REMOTE__H
11# define PE_REMOTE__H
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <glib.h> // gboolean
18#include <libxml/tree.h> // xmlNode
19#include <crm/pengine/status.h>
20
21bool xml_contains_remote_node(xmlNode *xml);
22bool pe__is_remote_node(const pcmk_node_t *node);
23bool pe__is_guest_node(const pcmk_node_t *node);
25bool pe__is_bundle_node(const pcmk_node_t *node);
28 const pcmk_resource_t *rsc);
30 const pcmk_node_t *host,
31 void (*helper)(const pcmk_node_t*, void*),
32 void *user_data);
33xmlNode *pe_create_remote_xml(xmlNode *parent, const char *uname,
34 const char *container_id, const char *migrateable,
35 const char *is_managed, const char *start_timeout,
36 const char *server, const char *port);
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif
const char * parent
Definition cib.c:27
pcmk__cpg_host_t host
Definition cpg.c:4
char uname[MAX_NAME]
Definition cpg.c:5
pcmk_scheduler_t * scheduler
bool pe__resource_is_remote_conn(const pcmk_resource_t *rsc)
Definition remote.c:18
bool xml_contains_remote_node(xmlNode *xml)
Definition remote.c:84
pcmk_resource_t * pe__resource_contains_guest_node(const pcmk_scheduler_t *scheduler, const pcmk_resource_t *rsc)
Definition remote.c:66
void pe_foreach_guest_node(const pcmk_scheduler_t *scheduler, const pcmk_node_t *host, void(*helper)(const pcmk_node_t *, void *), void *user_data)
Definition remote.c:120
xmlNode * pe_create_remote_xml(xmlNode *parent, const char *uname, const char *container_id, const char *migrateable, const char *is_managed, const char *start_timeout, const char *server, const char *port)
Definition remote.c:160
bool pe__is_bundle_node(const pcmk_node_t *node)
Definition remote.c:47
bool pe__is_guest_or_remote_node(const pcmk_node_t *node)
Definition remote.c:41
bool pe__is_remote_node(const pcmk_node_t *node)
Definition remote.c:25
bool pe__is_guest_node(const pcmk_node_t *node)
Definition remote.c:33
Cluster status and scheduling.
Implementation of pcmk_node_t.
Definition nodes.h:130
Implementation of pcmk_resource_t.
Definition resources.h:399
Implementation of pcmk_scheduler_t.
Definition scheduler.h:172