MySQL 8.0.39
Source Code Documentation
|
Keyring keys metadata iterator service provides APIs to create and use iterator to access metadata associated with all keys stored in keyring. More...
#include <keyring_keys_metadata_iterator.h>
Public Attributes | |
mysql_service_status_t(* | init )(my_h_keyring_keys_metadata_iterator *forward_iterator) |
Forward iterator initialization. More... | |
mysql_service_status_t(* | deinit )(my_h_keyring_keys_metadata_iterator forward_iterator) |
Iterator deinitialization. More... | |
mysql_service_status_t(* | is_valid )(my_h_keyring_keys_metadata_iterator forward_iterator) |
Check validity of the iterator. More... | |
mysql_service_status_t(* | next )(my_h_keyring_keys_metadata_iterator forward_iterator) |
Move iterator forward. More... | |
mysql_service_status_t(* | get_length )(my_h_keyring_keys_metadata_iterator forward_iterator, size_t *data_id_length, size_t *auth_id_length) |
Fetch length metadata for current key pointed by iterator. More... | |
mysql_service_status_t(* | get )(my_h_keyring_keys_metadata_iterator forward_iterator, char *data_id, size_t data_id_length, char *auth_id, size_t auth_id_length) |
Fetch metadata for current key pointed by iterator. More... | |
Keyring keys metadata iterator service provides APIs to create and use iterator to access metadata associated with all keys stored in keyring.
mysql_service_status_t(* s_mysql_keyring_keys_metadata_iterator::deinit) (my_h_keyring_keys_metadata_iterator forward_iterator) |
Iterator deinitialization.
[in,out] | forward_iterator | metadata iterator |
false | Success |
true | Failure |
mysql_service_status_t(* s_mysql_keyring_keys_metadata_iterator::get) (my_h_keyring_keys_metadata_iterator forward_iterator, char *data_id, size_t data_id_length, char *auth_id, size_t auth_id_length) |
Fetch metadata for current key pointed by iterator.
Out buffers should be big enough to accommodate data + null terminating character
[in] | forward_iterator | forward_iterator metadata iterator |
[out] | data_id | ID information of current data. Byte string. |
[in] | data_id_length | Length of data_id buffer |
[out] | auth_id | Owner of the key. Byte string. |
[in] | auth_id_length | Length of auth_id buffer |
false | Success |
true | Failure |
mysql_service_status_t(* s_mysql_keyring_keys_metadata_iterator::get_length) (my_h_keyring_keys_metadata_iterator forward_iterator, size_t *data_id_length, size_t *auth_id_length) |
Fetch length metadata for current key pointed by iterator.
[in] | forward_iterator | forward_iterator metadata iterator |
[out] | data_id_length | Length of data_id buffer |
[out] | auth_id_length | Length of auth_id buffer |
false | Success |
true | Failure |
mysql_service_status_t(* s_mysql_keyring_keys_metadata_iterator::init) (my_h_keyring_keys_metadata_iterator *forward_iterator) |
Forward iterator initialization.
This function allocates required memory for forward_iterator and initializes it. Caller should use deinit() to perform clean-up.
An iterator may become invalid if content of keyring is changed.
[out] | forward_iterator | metadata iterator |
false | Success |
true | Failure |
mysql_service_status_t(* s_mysql_keyring_keys_metadata_iterator::is_valid) (my_h_keyring_keys_metadata_iterator forward_iterator) |
Check validity of the iterator.
[in] | forward_iterator | metadata iterator |
true | Success |
false | Failure |
mysql_service_status_t(* s_mysql_keyring_keys_metadata_iterator::next) (my_h_keyring_keys_metadata_iterator forward_iterator) |
Move iterator forward.
[in,out] | forward_iterator | metadata iterator |
false | Success - indicates that iterator is pointing to next entry |
true | Failure - Failure in moving iterator forward or next was called after iterator reached the end. |