pacemaker  2.1.8-3980678f03
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 
30 int pcmk__get_ticket_state(cib_t *cib, const char *ticket_id, xmlNode **state);
31 
43 int pcmk__ticket_constraints(pcmk__output_t *out, cib_t *cib, const char *ticket_id);
44 
59  const char *ticket_id, bool force);
60 
75  const char *ticket_id, const char *attr_name,
76  const char *attr_default);
77 
97  const char *ticket_id, bool details, bool raw);
98 
114  const char *ticket_id, GList *attr_delete, bool force);
115 
136  const char *ticket_id, GHashTable *attr_set, bool force);
137 
152 int pcmk__ticket_state(pcmk__output_t *out, cib_t *cib, const char *ticket_id);
153 
154 #endif
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:259
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:312
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:441
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:369
int pcmk__get_ticket_state(cib_t *cib, const char *ticket_id, xmlNode **state)
Definition: pcmk_ticket.c:76
int pcmk__ticket_state(pcmk__output_t *out, cib_t *cib, const char *ticket_id)
Definition: pcmk_ticket.c:510
int pcmk__ticket_constraints(pcmk__output_t *out, cib_t *cib, const char *ticket_id)
Definition: pcmk_ticket.c:112
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