pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
pcmki_ticket.h
Go to the documentation of this file.
1/*
2 * Copyright 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__PCMKI_PCMKI_TICKET__H
11#define PCMK__PCMKI_PCMKI_TICKET__H
12
14
15#include <crm/cib/cib_types.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
34int pcmk__get_ticket_state(cib_t *cib, const char *ticket_id, xmlNode **state);
35
47int pcmk__ticket_constraints(pcmk__output_t *out, cib_t *cib, const char *ticket_id);
48
63 const char *ticket_id, bool force);
64
79 const char *ticket_id, const char *attr_name,
80 const char *attr_default);
81
101 const char *ticket_id, bool details, bool raw);
102
118 const char *ticket_id, GList *attr_delete, bool force);
119
140 const char *ticket_id, GHashTable *attr_set, bool force);
141
156int pcmk__ticket_state(pcmk__output_t *out, cib_t *cib, const char *ticket_id);
157
158#ifdef __cplusplus
159}
160#endif
161
162#endif // PCMK__PCMKI_PCMKI_TICKET__H
Data types for Cluster Information Base access.
pcmk_scheduler_t * scheduler
Formatted output for pacemaker tools.
int pcmk__ticket_set_attr(pcmk__output_t *out, cib_t *cib, pcmk_scheduler_t *scheduler, const char *ticket_id, GHashTable *attr_set, bool force)
Set the given attribute(s) on a ticket.
int pcmk__ticket_delete(pcmk__output_t *out, cib_t *cib, pcmk_scheduler_t *scheduler, const char *ticket_id, bool force)
int pcmk__ticket_constraints(pcmk__output_t *out, cib_t *cib, const char *ticket_id)
int pcmk__ticket_get_attr(pcmk__output_t *out, pcmk_scheduler_t *scheduler, const char *ticket_id, const char *attr_name, const char *attr_default)
int pcmk__get_ticket_state(cib_t *cib, const char *ticket_id, xmlNode **state)
Definition pcmk_ticket.c:78
int pcmk__ticket_state(pcmk__output_t *out, cib_t *cib, const char *ticket_id)
int pcmk__ticket_remove_attr(pcmk__output_t *out, cib_t *cib, pcmk_scheduler_t *scheduler, const char *ticket_id, GList *attr_delete, bool force)
Remove the given attribute(s) from a ticket.
int pcmk__ticket_info(pcmk__output_t *out, pcmk_scheduler_t *scheduler, const char *ticket_id, bool details, bool raw)
Return information about the given ticket.
This structure contains everything that makes up a single output formatter.