MySQL 9.1.0
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 DLLEXPORT
 

Typedefs

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

Functions

static void init (mysql_harness::PluginFuncEnv *env)
 
static JsonPointer::Token make_json_pointer_token (std::string_view token)
 
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 metadata_name_param_tokens
 
static const std::array cluster_name_param_tokens
 
static const std::array metadata_status_def_tokens
 
static const std::array metadata_list_def_tokens
 
static const std::array metadata_summary_def_tokens
 
static const std::array metadata_config_def_tokens
 
static const std::array cluster_node_summary_def_tokens
 
static const std::array cluster_node_list_def_tokens
 
static const std::array cluster_summary_def_tokens
 
static const std::array cluster_list_def_tokens
 
static const std::array metadata_status_path_tokens
 
static const std::array metadata_config_path_tokens
 
static const std::array metadata_list_path_tokens
 
static const std::array tags_append_tokens
 
static constexpr std::array 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:94
case opt name
Definition: sslopt-case.h:29
static constexpr std::array rest_plugin_supported_options
Definition: supported_rest_options.h:31

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)

◆ make_json_pointer_token()

static JsonPointer::Token make_json_pointer_token ( std::string_view  token)
static

◆ 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 cluster_list_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("ClusterList"),
}
static JsonPointer::Token make_json_pointer_token(std::string_view token)
Definition: rest_metadata_cache_plugin.cc:154

◆ cluster_name_param_tokens

const std::array cluster_name_param_tokens
static
Initial value:
{
make_json_pointer_token("parameters"),
make_json_pointer_token("clusterNameParam"),
}

◆ cluster_node_list_def_tokens

const std::array cluster_node_list_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("ClusterNodeList"),
}

◆ cluster_node_summary_def_tokens

const std::array cluster_node_summary_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("ClusterNodeSummary"),
}

◆ cluster_summary_def_tokens

const std::array cluster_summary_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("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 constexpr std::array required
Definition: rest_metadata_cache_plugin.cc:889
static void expose_configuration(mysql_harness::PluginFuncEnv *env, const char *, bool initial)
Definition: rest_metadata_cache_plugin.cc:920
static void init(mysql_harness::PluginFuncEnv *env)
Definition: rest_metadata_cache_plugin.cc:89
static void start(mysql_harness::PluginFuncEnv *env)
Definition: rest_metadata_cache_plugin.cc:855

◆ kRequireRealm

constexpr char kRequireRealm[] {"require_realm"}
staticconstexpr

◆ kSectionName

constexpr char kSectionName[] {"rest_metadata_cache"}
staticconstexpr

◆ metadata_config_def_tokens

const std::array metadata_config_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("MetadataConfig"),
}

◆ metadata_config_path_tokens

const std::array metadata_config_path_tokens
static
Initial value:
{
make_json_pointer_token("/metadata/{metadataName}/config"),
}

◆ metadata_list_def_tokens

const std::array metadata_list_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("MetadataList"),
}

◆ metadata_list_path_tokens

const std::array metadata_list_path_tokens
static
Initial value:

◆ metadata_name_param_tokens

const std::array metadata_name_param_tokens
static
Initial value:
{
make_json_pointer_token("parameters"),
make_json_pointer_token("metadataNameParam"),
}

◆ metadata_status_def_tokens

const std::array metadata_status_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("MetadataStatus"),
}

◆ metadata_status_path_tokens

const std::array metadata_status_path_tokens
static
Initial value:
{
make_json_pointer_token("/metadata/{metadataName}/status"),
}

◆ metadata_summary_def_tokens

const std::array metadata_summary_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("MetadataSummary"),
}

◆ require_realm_metadata_cache

std::string require_realm_metadata_cache

◆ required

constexpr std::array required
staticconstexpr
Initial value:
{
"logger",
"rest_api",
}

◆ tags_append_tokens

const std::array tags_append_tokens
static
Initial value: