#include <crm_internal.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <crm/crm.h>
#include <crm/common/xml.h>
Go to the source code of this file.
|
void | pcmk__cli_help (char cmd) |
|
const char * | pcmk__env_option (const char *option) |
|
void | pcmk__set_env_option (const char *option, const char *value, bool compat) |
| Set or unset a Pacemaker environment variable option. More...
|
|
bool | pcmk__env_option_enabled (const char *daemon, const char *option) |
|
bool | pcmk__valid_interval_spec (const char *value) |
|
bool | pcmk__valid_boolean (const char *value) |
|
bool | pcmk__valid_int (const char *value) |
|
bool | pcmk__valid_positive_int (const char *value) |
|
bool | pcmk__valid_no_quorum_policy (const char *value) |
|
bool | pcmk__valid_percentage (const char *value) |
|
bool | pcmk__valid_placement_strategy (const char *value) |
|
const char * | pcmk__cluster_option (GHashTable *options, const char *name) |
|
int | pcmk__output_cluster_options (pcmk__output_t *out, const char *name, const char *desc_short, const char *desc_long, uint32_t filter, bool all) |
|
int | pcmk__output_primitive_meta (pcmk__output_t *out, const char *name, const char *desc_short, const char *desc_long, bool all) |
|
int | pcmk__output_fencing_params (pcmk__output_t *out, const char *name, const char *desc_short, const char *desc_long, bool all) |
|
int | pcmk__daemon_metadata (pcmk__output_t *out, const char *name, const char *desc_short, const char *desc_long, enum pcmk__opt_flags filter) |
|
void | pcmk__validate_cluster_options (GHashTable *options) |
|
◆ _GNU_SOURCE
◆ pcmk__cli_help()
void pcmk__cli_help |
( |
char |
cmd | ) |
|
◆ pcmk__cluster_option()
const char* pcmk__cluster_option |
( |
GHashTable * |
options, |
|
|
const char * |
name |
|
) |
| |
◆ pcmk__daemon_metadata()
int pcmk__daemon_metadata |
( |
pcmk__output_t * |
out, |
|
|
const char * |
name, |
|
|
const char * |
desc_short, |
|
|
const char * |
desc_long, |
|
|
enum pcmk__opt_flags |
filter |
|
) |
| |
◆ pcmk__env_option()
const char* pcmk__env_option |
( |
const char * |
option | ) |
|
◆ pcmk__env_option_enabled()
bool pcmk__env_option_enabled |
( |
const char * |
daemon, |
|
|
const char * |
option |
|
) |
| |
◆ pcmk__output_cluster_options()
int pcmk__output_cluster_options |
( |
pcmk__output_t * |
out, |
|
|
const char * |
name, |
|
|
const char * |
desc_short, |
|
|
const char * |
desc_long, |
|
|
uint32_t |
filter, |
|
|
bool |
all |
|
) |
| |
◆ pcmk__output_fencing_params()
int pcmk__output_fencing_params |
( |
pcmk__output_t * |
out, |
|
|
const char * |
name, |
|
|
const char * |
desc_short, |
|
|
const char * |
desc_long, |
|
|
bool |
all |
|
) |
| |
◆ pcmk__output_primitive_meta()
int pcmk__output_primitive_meta |
( |
pcmk__output_t * |
out, |
|
|
const char * |
name, |
|
|
const char * |
desc_short, |
|
|
const char * |
desc_long, |
|
|
bool |
all |
|
) |
| |
◆ pcmk__set_env_option()
void pcmk__set_env_option |
( |
const char * |
option, |
|
|
const char * |
value, |
|
|
bool |
compat |
|
) |
| |
Set or unset a Pacemaker environment variable option.
Set an environment variable option with a "PCMK_"
prefix and optionally an "HA_"
prefix for backward compatibility.
- Parameters
-
[in] | option | Environment variable name (without prefix) |
[in] | value | New value (or NULL to unset) |
[in] | compat | If false and value is not NULL , set only "PCMK_<option>" ; otherwise, set (or unset) both "PCMK_<option>" and "HA_<option>" |
- Note
compat
is ignored when value
is NULL
. A NULL
value
means we're unsetting option
. pcmk__get_env_option()
checks for both prefixes, so we want to clear them both.
Definition at line 1144 of file options.c.
◆ pcmk__valid_boolean()
bool pcmk__valid_boolean |
( |
const char * |
value | ) |
|
◆ pcmk__valid_int()
bool pcmk__valid_int |
( |
const char * |
value | ) |
|
◆ pcmk__valid_interval_spec()
bool pcmk__valid_interval_spec |
( |
const char * |
value | ) |
|
◆ pcmk__valid_no_quorum_policy()
bool pcmk__valid_no_quorum_policy |
( |
const char * |
value | ) |
|
◆ pcmk__valid_percentage()
bool pcmk__valid_percentage |
( |
const char * |
value | ) |
|
◆ pcmk__valid_placement_strategy()
bool pcmk__valid_placement_strategy |
( |
const char * |
value | ) |
|
◆ pcmk__valid_positive_int()
bool pcmk__valid_positive_int |
( |
const char * |
value | ) |
|
◆ pcmk__validate_cluster_options()
void pcmk__validate_cluster_options |
( |
GHashTable * |
options | ) |
|