#include <config.h>
#include <glib.h>
#include <stdbool.h>
Go to the source code of this file.
|
void | pcmk__set_cli_options (const char *short_options, const char *usage, const pcmk__cli_option_t *long_options, const char *app_desc) |
|
int | pcmk__next_cli_option (int argc, char **argv, int *index, const char **longname) |
|
_Noreturn void | pcmk__cli_help (char cmd, crm_exit_t exit_code) |
|
void | pcmk__cli_option_cleanup (void) |
|
const char * | pcmk__env_option (const char *option) |
|
void | pcmk__set_env_option (const char *option, const char *value) |
| Set or unset a Pacemaker environment variable option. More...
|
|
bool | pcmk__env_option_enabled (const char *daemon, const char *option) |
|
const char * | pcmk__cluster_option (GHashTable *options, const pcmk__cluster_option_t *option_list, int len, const char *name) |
|
gchar * | pcmk__format_option_metadata (const char *name, const char *desc_short, const char *desc_long, pcmk__cluster_option_t *option_list, int len) |
|
void | pcmk__validate_cluster_options (GHashTable *options, pcmk__cluster_option_t *option_list, int len) |
|
bool | pcmk__valid_interval_spec (const char *value) |
|
bool | pcmk__valid_boolean (const char *value) |
|
bool | pcmk__valid_number (const char *value) |
|
bool | pcmk__valid_positive_number (const char *value) |
|
bool | pcmk__valid_quorum (const char *value) |
|
bool | pcmk__valid_script (const char *value) |
|
bool | pcmk__valid_percentage (const char *value) |
|
long | pcmk__get_sbd_timeout (void) |
|
bool | pcmk__get_sbd_sync_resource_startup (void) |
|
long | pcmk__auto_watchdog_timeout (void) |
|
bool | pcmk__valid_sbd_timeout (const char *value) |
|
◆ no_argument
◆ PCMK__CONFIG_H
◆ PCMK__ENV_BLACKBOX
#define PCMK__ENV_BLACKBOX "blackbox" |
◆ PCMK__ENV_CLUSTER_TYPE
#define PCMK__ENV_CLUSTER_TYPE "cluster_type" |
◆ PCMK__ENV_DEBUG
#define PCMK__ENV_DEBUG "debug" |
◆ PCMK__ENV_LOGFACILITY
#define PCMK__ENV_LOGFACILITY "logfacility" |
◆ PCMK__ENV_LOGFILE
#define PCMK__ENV_LOGFILE "logfile" |
◆ PCMK__ENV_LOGPRIORITY
#define PCMK__ENV_LOGPRIORITY "logpriority" |
◆ PCMK__ENV_MCP
#define PCMK__ENV_MCP "mcp" |
◆ PCMK__ENV_NODE_START_STATE
#define PCMK__ENV_NODE_START_STATE "node_start_state" |
◆ PCMK__ENV_PHYSICAL_HOST
#define PCMK__ENV_PHYSICAL_HOST "physical_host" |
◆ PCMK__ENV_QUORUM_TYPE
#define PCMK__ENV_QUORUM_TYPE "quorum_type" |
◆ PCMK__ENV_SHUTDOWN_DELAY
#define PCMK__ENV_SHUTDOWN_DELAY "shutdown_delay" |
◆ PCMK__ENV_STDERR
#define PCMK__ENV_STDERR "stderr" |
◆ PCMK__META_ALLOW_UNHEALTHY_NODES
#define PCMK__META_ALLOW_UNHEALTHY_NODES "allow-unhealthy-nodes" |
◆ PCMK__OPT_NODE_HEALTH_BASE
#define PCMK__OPT_NODE_HEALTH_BASE "node-health-base" |
◆ PCMK__OPT_NODE_HEALTH_GREEN
#define PCMK__OPT_NODE_HEALTH_GREEN "node-health-green" |
◆ PCMK__OPT_NODE_HEALTH_RED
#define PCMK__OPT_NODE_HEALTH_RED "node-health-red" |
◆ PCMK__OPT_NODE_HEALTH_STRATEGY
#define PCMK__OPT_NODE_HEALTH_STRATEGY "node-health-strategy" |
◆ PCMK__OPT_NODE_HEALTH_YELLOW
#define PCMK__OPT_NODE_HEALTH_YELLOW "node-health-yellow" |
◆ PCMK__VALUE_CUSTOM
#define PCMK__VALUE_CUSTOM "custom" |
◆ PCMK__VALUE_FENCING
#define PCMK__VALUE_FENCING "fencing" |
◆ PCMK__VALUE_GREEN
#define PCMK__VALUE_GREEN "green" |
◆ PCMK__VALUE_MIGRATE_ON_RED
#define PCMK__VALUE_MIGRATE_ON_RED "migrate-on-red" |
◆ PCMK__VALUE_NONE
#define PCMK__VALUE_NONE "none" |
◆ PCMK__VALUE_NOTHING
#define PCMK__VALUE_NOTHING "nothing" |
◆ PCMK__VALUE_ONLY_GREEN
#define PCMK__VALUE_ONLY_GREEN "only-green" |
◆ PCMK__VALUE_PROGRESSIVE
#define PCMK__VALUE_PROGRESSIVE "progressive" |
◆ PCMK__VALUE_QUORUM
#define PCMK__VALUE_QUORUM "quorum" |
◆ PCMK__VALUE_RED
#define PCMK__VALUE_RED "red" |
◆ PCMK__VALUE_UNFENCING
#define PCMK__VALUE_UNFENCING "unfencing" |
◆ PCMK__VALUE_YELLOW
#define PCMK__VALUE_YELLOW "yellow" |
◆ required_argument
#define required_argument 1 |
◆ pcmk__cli_option_t
◆ pcmk__cluster_option_t
◆ pcmk__cli_option_flags
Enumerator |
---|
pcmk__option_default | |
pcmk__option_hidden | |
pcmk__option_paragraph | |
pcmk__option_example | |
Definition at line 34 of file options_internal.h.
◆ pcmk__auto_watchdog_timeout()
long pcmk__auto_watchdog_timeout |
( |
void |
| ) |
|
◆ pcmk__cli_help()
◆ pcmk__cli_option_cleanup()
void pcmk__cli_option_cleanup |
( |
void |
| ) |
|
◆ pcmk__cluster_option()
const char* pcmk__cluster_option |
( |
GHashTable * |
options, |
|
|
const pcmk__cluster_option_t * |
option_list, |
|
|
int |
len, |
|
|
const char * |
name |
|
) |
| |
◆ 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__format_option_metadata()
gchar* pcmk__format_option_metadata |
( |
const char * |
name, |
|
|
const char * |
desc_short, |
|
|
const char * |
desc_long, |
|
|
pcmk__cluster_option_t * |
option_list, |
|
|
int |
len |
|
) |
| |
◆ pcmk__get_sbd_sync_resource_startup()
bool pcmk__get_sbd_sync_resource_startup |
( |
void |
| ) |
|
◆ pcmk__get_sbd_timeout()
long pcmk__get_sbd_timeout |
( |
void |
| ) |
|
◆ pcmk__next_cli_option()
int pcmk__next_cli_option |
( |
int |
argc, |
|
|
char ** |
argv, |
|
|
int * |
index, |
|
|
const char ** |
longname |
|
) |
| |
◆ pcmk__set_cli_options()
void pcmk__set_cli_options |
( |
const char * |
short_options, |
|
|
const char * |
usage, |
|
|
const pcmk__cli_option_t * |
long_options, |
|
|
const char * |
app_desc |
|
) |
| |
◆ pcmk__set_env_option()
void pcmk__set_env_option |
( |
const char * |
option, |
|
|
const char * |
value |
|
) |
| |
Set or unset a Pacemaker environment variable option.
Set an environment variable option with both a PCMK_ and (for backward compatibility) HA_ prefix.
- Parameters
-
[in] | option | Environment variable name (without prefix) |
[in] | value | New value (or NULL to unset) |
Definition at line 333 of file options.c.
◆ pcmk__valid_boolean()
bool pcmk__valid_boolean |
( |
const char * |
value | ) |
|
◆ pcmk__valid_interval_spec()
bool pcmk__valid_interval_spec |
( |
const char * |
value | ) |
|
◆ pcmk__valid_number()
bool pcmk__valid_number |
( |
const char * |
value | ) |
|
◆ pcmk__valid_percentage()
bool pcmk__valid_percentage |
( |
const char * |
value | ) |
|
◆ pcmk__valid_positive_number()
bool pcmk__valid_positive_number |
( |
const char * |
value | ) |
|
◆ pcmk__valid_quorum()
bool pcmk__valid_quorum |
( |
const char * |
value | ) |
|
◆ pcmk__valid_sbd_timeout()
bool pcmk__valid_sbd_timeout |
( |
const char * |
value | ) |
|
◆ pcmk__valid_script()
bool pcmk__valid_script |
( |
const char * |
value | ) |
|
◆ pcmk__validate_cluster_options()