MySQL 8.4.2
Source Code Documentation
|
Keyring component metadata query service provides APIs to obtain component specific metadata in string format. More...
#include <keyring_metadata_query.h>
Public Attributes | |
mysql_service_status_t(* | init )(my_h_keyring_component_metadata_iterator *metadata_iterator) |
Initialize metadata iterator. More... | |
mysql_service_status_t(* | deinit )(my_h_keyring_component_metadata_iterator metadata_iterator) |
Deinitialize metadata iterator. More... | |
mysql_service_status_t(* | is_valid )(my_h_keyring_component_metadata_iterator metadata_iterator) |
Check validity of iterator. More... | |
mysql_service_status_t(* | next )(my_h_keyring_component_metadata_iterator metadata_iterator) |
Move iterator forward. More... | |
mysql_service_status_t(* | get_length )(my_h_keyring_component_metadata_iterator metadata_iterator, size_t *key_buffer_length, size_t *value_buffer_length) |
Get length information about metadata key and value. More... | |
mysql_service_status_t(* | get )(my_h_keyring_component_metadata_iterator metadata_iterator, char *key_buffer, size_t key_buffer_len, char *value_buffer, size_t value_buffer_len) |
Get name and value of metadata at current position. More... | |
Keyring component metadata query service provides APIs to obtain component specific metadata in string format.
Metadata would be in (key, value) pair.
Implementor can decide what metadata should be exposed through these APIs.
One of the primary consumer of this metadata is Performance schema table keyring_component_status.
mysql_service_status_t(* s_mysql_keyring_component_metadata_query::deinit) (my_h_keyring_component_metadata_iterator metadata_iterator) |
Deinitialize metadata iterator.
[in,out] | metadata_iterator | Metadata iterator handle |
false | Success |
true | Failure |
mysql_service_status_t(* s_mysql_keyring_component_metadata_query::get) (my_h_keyring_component_metadata_iterator metadata_iterator, char *key_buffer, size_t key_buffer_len, char *value_buffer, size_t value_buffer_len) |
Get name and value of metadata at current position.
[in] | metadata_iterator | Metadata iterator handle |
[out] | key_buffer | Output buffer for key. Byte string. |
[in] | key_buffer_length | Length of key buffer |
[out] | value_buffer | Output buffer for value. Byte string. |
[in] | value_buffer_length | Length of value buffer |
false | Success |
true | Failure |
mysql_service_status_t(* s_mysql_keyring_component_metadata_query::get_length) (my_h_keyring_component_metadata_iterator metadata_iterator, size_t *key_buffer_length, size_t *value_buffer_length) |
Get length information about metadata key and value.
[in] | metadata_iterator | Metadata iterator handle |
[out] | key_buffer_length | Length of the key buffer |
[out] | value_buffer_length | Length of the value buffer |
false | Success |
true | Failure |
mysql_service_status_t(* s_mysql_keyring_component_metadata_query::init) (my_h_keyring_component_metadata_iterator *metadata_iterator) |
Initialize metadata iterator.
deinit should be called for clean-up.
[out] | metadata_iterator | Metadata iterator handle |
false | Success |
true | Failure |
mysql_service_status_t(* s_mysql_keyring_component_metadata_query::is_valid) (my_h_keyring_component_metadata_iterator metadata_iterator) |
Check validity of iterator.
[in] | metadata_iterator | Metadata iterator handle |
true | Iterator valid |
false | Iterator invalid |
mysql_service_status_t(* s_mysql_keyring_component_metadata_query::next) (my_h_keyring_component_metadata_iterator metadata_iterator) |
Move iterator forward.
[in,out] | metadata_iterator | Metadata iterator handle |
false | Success |
true | Failure. Either iterator already reached end position or some other error was encountered. |