pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Data Structures | Typedefs | Enumerations
cib_types.h File Reference

Data types for Cluster Information Base access. More...

#include <glib.h>
#include <libxml/tree.h>
#include <crm/common/ipc.h>
#include <crm/common/xml.h>
Include dependency graph for cib_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cib_api_operations_s
 
struct  cib_s
 

Typedefs

typedef struct cib_s cib_t
 
typedef struct cib_api_operations_s cib_api_operations_t
 

Enumerations

enum  cib_variant {
  cib_undefined = 0, cib_native = 1, cib_file = 2, cib_remote = 3,
  cib_database = 4
}
 
enum  cib_state { cib_connected_command, cib_connected_query, cib_disconnected }
 
enum  cib_conn_type { cib_command, cib_query, cib_no_connection, cib_command_nonblocking }
 
enum  cib_call_options {
  cib_none = 0, cib_verbose = (1 << 0), cib_xpath = (1 << 1), cib_multiple = (1 << 2),
  cib_can_create = (1 << 3), cib_discard_reply = (1 << 4), cib_no_children = (1 << 5), cib_xpath_address = (1 << 6),
  cib_mixed_update = (1 << 7), cib_scope_local = (1 << 8), cib_dryrun = (1 << 9), cib_transaction = (1 << 10),
  cib_score_update = (1 << 11), cib_sync_call = (1 << 12), cib_no_mtime = (1 << 13), cib_zero_copy = (1 << 14),
  cib_inhibit_notify = (1 << 16), cib_quorum_override = (1 << 20), cib_inhibit_bcast = (1 << 24), cib_force_diff = (1 << 28)
}
 

Detailed Description

Data types for Cluster Information Base access.

Definition in file cib_types.h.

Typedef Documentation

◆ cib_api_operations_t

◆ cib_t

typedef struct cib_s cib_t

Definition at line 155 of file cib_types.h.

Enumeration Type Documentation

◆ cib_call_options

Enumerator
cib_none 
cib_verbose 

Prefer stderr to logs.

cib_xpath 
cib_multiple 
cib_can_create 
cib_discard_reply 
cib_no_children 
cib_xpath_address 
cib_mixed_update 
Deprecated:
This value will be removed in a future release
cib_scope_local 
Deprecated:
This value will be removed in a future release
cib_dryrun 
cib_transaction 

Process request when the client commits the active transaction.

Add the request to the client's active transaction instead of processing it immediately. If the client has no active transaction, or if the request is not supported in transactions, the call will fail.

The request is added to the transaction synchronously, and the return value indicates whether it was added successfully.

Refer to cib_api_operations_t:init_transaction() and cib_api_operations_t:end_transaction() for more details on CIB transactions.

cib_score_update 

Treat new attribute values as atomic score updates where possible.

This option takes effect when updating XML attributes. For an attribute named "name", if the new value is "name++" or "name+=X" for some score X, the new value is set as follows:

  • If attribute "name" is not already set to some value in the element being updated, the new value is set as a literal string.
  • If the new value is "name++", then the attribute is set to its existing value (parsed as a score) plus 1.
  • If the new value is "name+=X" for some score X, then the attribute is set to its existing value plus X, where the existing value and X are parsed and added as scores.

Scores are integer values capped at INFINITY and -INFINITY. Refer to Pacemaker Explained and to the char2score() function for more details on scores, including how they're parsed and added.

Note: This is implemented only for modify operations.

cib_sync_call 
cib_no_mtime 
cib_zero_copy 
Deprecated:
This value will be removed in a future release
cib_inhibit_notify 
cib_quorum_override 
Deprecated:
This value will be removed in a future release
cib_inhibit_bcast 
Deprecated:
This value will be removed in a future release
cib_force_diff 

Definition at line 60 of file cib_types.h.

◆ cib_conn_type

Enumerator
cib_command 
cib_query 
cib_no_connection 
cib_command_nonblocking 

Definition at line 50 of file cib_types.h.

◆ cib_state

enum cib_state
Enumerator
cib_connected_command 
cib_connected_query 
cib_disconnected 

Definition at line 40 of file cib_types.h.

◆ cib_variant

Enumerator
cib_undefined 
cib_native 
cib_file 
cib_remote 
cib_database 
Deprecated:
This value will be removed in a future release

Definition at line 28 of file cib_types.h.