MySQL 8.3.0
Source Code Documentation
anonymous_namespace{config_generator.cc} Namespace Reference

Classes

struct  account_exists
 
class  ChangeRouterAccountPlugin
 
class  ConfigSectionPrinter
 
struct  password_too_weak
 

Enumerations

enum class  EndpointMode { kEndpointModeRW , kEndpointModeRO , kEndpointModeRWSplit }
 

Functions

unsigned get_password_retries (const std::map< std::string, std::string > &user_options)
 
std::string str (const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
 
bool is_valid_conf_ident (const std::string &name)
 
std::map< std::string, std::string > get_config_cmdln_options (const std::map< std::string, std::vector< std::string > > &multivalue_options)
 
void add_endpoint_option (ConfigSectionPrinter &routing_section, const ConfigGenerator::Options &options, const ConfigGenerator::Options::Endpoint &ep)
 
void add_metadata_cache_routing_section (std::ostream &config_file, bool is_classic, const EndpointMode endpoint_mode, const ConfigGenerator::Options::Endpoint endpoint, const ConfigGenerator::Options &options, const std::string &metadata_key, const std::string &cluster_name, const std::map< std::string, std::string > &config_cmdln_options)
 
static void add_http_auth_backend_section (std::ostream &config_file, const mysql_harness::Path &datadir, const std::string_view auth_backend_name, const mysqlrouter::MetadataSchemaVersion schema_version, const std::map< std::string, std::string > &config_cmdln_options)
 Add proper authentication backend section to the config based on the metadata version. More...
 
void add_rest_section (std::ostream &config_file, const ConfigGenerator::Options &options, const std::map< std::string, std::string > &default_paths, const std::map< std::string, std::string > &config_cmdln_options, const std::string &ssl_cert, const std::string &ssl_key, const mysqlrouter::MetadataSchemaVersion &schema_version)
 
std::string get_cluster_type_specific_uuid (const mysql_harness::Config &conf, mysqlrouter::ClusterType cluster_type)
 

Enumeration Type Documentation

◆ EndpointMode

enum class anonymous_namespace{config_generator.cc}::EndpointMode
strong
Enumerator
kEndpointModeRW 
kEndpointModeRO 
kEndpointModeRWSplit 

Function Documentation

◆ add_endpoint_option()

void anonymous_namespace{config_generator.cc}::add_endpoint_option ( ConfigSectionPrinter routing_section,
const ConfigGenerator::Options options,
const ConfigGenerator::Options::Endpoint ep 
)

◆ add_http_auth_backend_section()

static void anonymous_namespace{config_generator.cc}::add_http_auth_backend_section ( std::ostream &  config_file,
const mysql_harness::Path datadir,
const std::string_view  auth_backend_name,
const mysqlrouter::MetadataSchemaVersion  schema_version,
const std::map< std::string, std::string > &  config_cmdln_options 
)
static

Add proper authentication backend section to the config based on the metadata version.

If needed it creates an empty authentication password file used in the config.

Parameters
[in]config_file- output configuration file stream
[in]datadir- path of a router data directory
[in]auth_backend_name- authentication backend section name
[in]schema_version- metadata schema version
[in]config_cmdln_options- config options overwrites from the command line

◆ add_metadata_cache_routing_section()

void anonymous_namespace{config_generator.cc}::add_metadata_cache_routing_section ( std::ostream &  config_file,
bool  is_classic,
const EndpointMode  endpoint_mode,
const ConfigGenerator::Options::Endpoint  endpoint,
const ConfigGenerator::Options options,
const std::string &  metadata_key,
const std::string &  cluster_name,
const std::map< std::string, std::string > &  config_cmdln_options 
)

◆ add_rest_section()

void anonymous_namespace{config_generator.cc}::add_rest_section ( std::ostream &  config_file,
const ConfigGenerator::Options options,
const std::map< std::string, std::string > &  default_paths,
const std::map< std::string, std::string > &  config_cmdln_options,
const std::string &  ssl_cert,
const std::string &  ssl_key,
const mysqlrouter::MetadataSchemaVersion schema_version 
)

◆ get_cluster_type_specific_uuid()

std::string anonymous_namespace{config_generator.cc}::get_cluster_type_specific_uuid ( const mysql_harness::Config conf,
mysqlrouter::ClusterType  cluster_type 
)

◆ get_config_cmdln_options()

std::map< std::string, std::string > anonymous_namespace{config_generator.cc}::get_config_cmdln_options ( const std::map< std::string, std::vector< std::string > > &  multivalue_options)

◆ get_password_retries()

unsigned anonymous_namespace{config_generator.cc}::get_password_retries ( const std::map< std::string, std::string > &  user_options)

◆ is_valid_conf_ident()

bool anonymous_namespace{config_generator.cc}::is_valid_conf_ident ( const std::string &  name)

◆ str()

std::string anonymous_namespace{config_generator.cc}::str ( const mysqlrouter::ConfigGenerator::Options::Endpoint ep)
inline