MySQL 8.4.2
Source Code Documentation
rest_metadata_cache_plugin.cc File Reference

Classes

class  RestMetadataCachePluginConfig
 
class  anonymous_namespace{rest_metadata_cache_plugin.cc}::RestMetadataCacheConfigExposer
 

Namespaces

 

Macros

#define GET_OPTION_CHECKED(option, section, name, value)
 
#define STR(s)    { s, strlen(s), rapidjson::kPointerInvalidIndex }
 
#define DLLEXPORT
 

Typedefs

using StringOption = mysql_harness::StringOption
 
using JsonPointer = RestApiComponent::JsonPointer
 
using JsonValue = RestApiComponent::JsonValue
 

Functions

static void init (mysql_harness::PluginFuncEnv *env)
 
std::string json_pointer_stringfy (const JsonPointer &ptr)
 
static void spec_adder (RestApiComponent::JsonDocument &spec_doc)
 
static void start (mysql_harness::PluginFuncEnv *env)
 
static void expose_configuration (mysql_harness::PluginFuncEnv *env, const char *, bool initial)
 

Variables

static constexpr char kSectionName [] {"rest_metadata_cache"}
 
static constexpr char kRequireRealm [] {"require_realm"}
 
std::string require_realm_metadata_cache
 
static const std::array< JsonPointer::Token, 2 > metadata_name_param_tokens
 
static const std::array< JsonPointer::Token, 2 > cluster_name_param_tokens
 
static const std::array< JsonPointer::Token, 2 > metadata_status_def_tokens
 
static const std::array< JsonPointer::Token, 2 > metadata_list_def_tokens
 
static const std::array< JsonPointer::Token, 2 > metadata_summary_def_tokens
 
static const std::array< JsonPointer::Token, 2 > metadata_config_def_tokens
 
static const std::array< JsonPointer::Token, 2 > cluster_node_summary_def_tokens
 
static const std::array< JsonPointer::Token, 2 > cluster_node_list_def_tokens
 
static const std::array< JsonPointer::Token, 2 > cluster_summary_def_tokens
 
static const std::array< JsonPointer::Token, 2 > cluster_list_def_tokens
 
static const std::array< JsonPointer::Token, 2 > metadata_status_path_tokens
 
static const std::array< JsonPointer::Token, 2 > metadata_config_path_tokens
 
static const std::array< JsonPointer::Token, 2 > metadata_list_path_tokens
 
static const std::array< JsonPointer::Token, 2 > tags_append_tokens
 
static const std::array< const char *, 2 > required
 
mysql_harness::Plugin DLLEXPORT harness_plugin_rest_metadata_cache
 

Macro Definition Documentation

◆ DLLEXPORT

#define DLLEXPORT

◆ GET_OPTION_CHECKED

#define GET_OPTION_CHECKED (   option,
  section,
  name,
  value 
)
Value:
static_assert( \
option = get_option(section, name, value);
constexpr bool str_in_collection(const T &t, const std::string_view &k)
Definition: string.h:157
case opt name
Definition: sslopt-case.h:29
static constexpr std::array< const char *, 1 > rest_plugin_supported_options
Definition: supported_rest_options.h:31

◆ STR

#define STR (   s)     { s, strlen(s), rapidjson::kPointerInvalidIndex }

Typedef Documentation

◆ JsonPointer

◆ JsonValue

◆ StringOption

Function Documentation

◆ expose_configuration()

static void expose_configuration ( mysql_harness::PluginFuncEnv env,
const char *  ,
bool  initial 
)
static

◆ init()

static void init ( mysql_harness::PluginFuncEnv env)
static

◆ json_pointer_stringfy()

std::string json_pointer_stringfy ( const JsonPointer ptr)

◆ spec_adder()

static void spec_adder ( RestApiComponent::JsonDocument spec_doc)
static

◆ start()

static void start ( mysql_harness::PluginFuncEnv env)
static

Variable Documentation

◆ cluster_list_def_tokens

const std::array<JsonPointer::Token, 2> cluster_list_def_tokens
static
Initial value:
{
{STR("definitions"), STR("ClusterList")}}
#define STR(s)
Definition: rest_metadata_cache_plugin.cc:154

◆ cluster_name_param_tokens

const std::array<JsonPointer::Token, 2> cluster_name_param_tokens
static
Initial value:
{
{STR("parameters"), STR("clusterNameParam")}}

◆ cluster_node_list_def_tokens

const std::array<JsonPointer::Token, 2> cluster_node_list_def_tokens
static
Initial value:
{
{STR("definitions"), STR("ClusterNodeList")}}

◆ cluster_node_summary_def_tokens

const std::array<JsonPointer::Token, 2> cluster_node_summary_def_tokens
static
Initial value:
{
{STR("definitions"), STR("ClusterNodeSummary")}}

◆ cluster_summary_def_tokens

const std::array<JsonPointer::Token, 2> cluster_summary_def_tokens
static
Initial value:
{
{STR("definitions"), STR("ClusterSummary")}}

◆ harness_plugin_rest_metadata_cache

mysql_harness::Plugin DLLEXPORT harness_plugin_rest_metadata_cache
Initial value:
= {
mysql_harness::PLUGIN_ABI_VERSION,
mysql_harness::ARCHITECTURE_DESCRIPTOR,
"REST_METADATA_CACHE",
VERSION_NUMBER(0, 0, 1),
required.size(),
required.data(),
0,
nullptr,
init,
nullptr,
nullptr,
true,
}
static void expose_configuration(mysql_harness::PluginFuncEnv *env, const char *, bool initial)
Definition: rest_metadata_cache_plugin.cc:893
static void init(mysql_harness::PluginFuncEnv *env)
Definition: rest_metadata_cache_plugin.cc:89
static const std::array< const char *, 2 > required
Definition: rest_metadata_cache_plugin.cc:862
static void start(mysql_harness::PluginFuncEnv *env)
Definition: rest_metadata_cache_plugin.cc:826

◆ kRequireRealm

constexpr char kRequireRealm[] {"require_realm"}
staticconstexpr

◆ kSectionName

constexpr char kSectionName[] {"rest_metadata_cache"}
staticconstexpr

◆ metadata_config_def_tokens

const std::array<JsonPointer::Token, 2> metadata_config_def_tokens
static
Initial value:
{
{STR("definitions"), STR("MetadataConfig")}}

◆ metadata_config_path_tokens

const std::array<JsonPointer::Token, 2> metadata_config_path_tokens
static
Initial value:
{
{STR("paths"), STR("/metadata/{metadataName}/config")}}

◆ metadata_list_def_tokens

const std::array<JsonPointer::Token, 2> metadata_list_def_tokens
static
Initial value:
{
{STR("definitions"), STR("MetadataList")}}

◆ metadata_list_path_tokens

const std::array<JsonPointer::Token, 2> metadata_list_path_tokens
static
Initial value:
{
{STR("paths"), STR("/metadata")}}

◆ metadata_name_param_tokens

const std::array<JsonPointer::Token, 2> metadata_name_param_tokens
static
Initial value:
{
{STR("parameters"), STR("metadataNameParam")}}

◆ metadata_status_def_tokens

const std::array<JsonPointer::Token, 2> metadata_status_def_tokens
static
Initial value:
{
{STR("definitions"), STR("MetadataStatus")}}

◆ metadata_status_path_tokens

const std::array<JsonPointer::Token, 2> metadata_status_path_tokens
static
Initial value:
{
{STR("paths"), STR("/metadata/{metadataName}/status")}}

◆ metadata_summary_def_tokens

const std::array<JsonPointer::Token, 2> metadata_summary_def_tokens
static
Initial value:
{
{STR("definitions"), STR("MetadataSummary")}}

◆ require_realm_metadata_cache

std::string require_realm_metadata_cache

◆ required

const std::array<const char *, 2> required
static
Initial value:
= {{
"logger",
"rest_api",
}}

◆ tags_append_tokens

const std::array<JsonPointer::Token, 2> tags_append_tokens
static
Initial value:
{
{STR("tags"), STR("-")}}