pacemaker  3.0.0-d8340737c4
Scalable High-Availability cluster resource manager
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
18 extern "C" {
19 #endif
20 
34 int pcmk__get_ticket_state(cib_t *cib, const char *ticket_id, xmlNode **state);
35 
47 int 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 
156 int 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
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)
Definition: pcmk_ticket.c:261
Data types for Cluster Information Base access.
Formatted output for pacemaker tools.
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.
Definition: pcmk_ticket.c:315
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.
Definition: pcmk_ticket.c:447
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.
Definition: pcmk_ticket.c:375
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)
Definition: pcmk_ticket.c:516
int pcmk__ticket_constraints(pcmk__output_t *out, cib_t *cib, const char *ticket_id)
Definition: pcmk_ticket.c:113
pcmk_scheduler_t * scheduler
This structure contains everything that makes up a single output formatter.
int pcmk__ticket_delete(pcmk__output_t *out, cib_t *cib, pcmk_scheduler_t *scheduler, const char *ticket_id, bool force)
Definition: pcmk_ticket.c:180