MySQL 8.0.39
Source Code Documentation
keyring_common::meta::Metadata Class Referencefinal

Common metadata. More...

#include <meta.h>

Classes

struct  Hash
 

Public Member Functions

 Metadata (const std::string key_id, const std::string owner_id)
 Constructor. More...
 
 Metadata (const char *key_id, const char *owner_id)
 
 Metadata ()
 
 Metadata (const Metadata &src)
 Copy constructor. More...
 
 Metadata (Metadata &&src) noexcept
 Move constructor. More...
 
Metadataoperator= (const Metadata &src)
 Assignment operator. More...
 
Metadataoperator= (Metadata &&src) noexcept
 
 ~Metadata ()
 Destructor. More...
 
const std::string key_id () const
 Get key ID. More...
 
const std::string owner_id () const
 Get owner info. More...
 
bool valid () const
 Validity of metadata object. More...
 
const std::string hash_key () const
 
bool operator== (const Metadata &other) const
 

Private Member Functions

void create_hash_key ()
 create hash key More...
 

Private Attributes

std::string key_id_
 Consumer specific key id. More...
 
std::string owner_id_
 Owner information. More...
 
std::string hash_key_
 Hash key. More...
 
bool valid_ {false}
 Validity of metadata. More...
 

Detailed Description

Common metadata.

Usually provided by:

  • consumer of keyring APIs
  • Keyring backend when data is fetched

Constructor & Destructor Documentation

◆ Metadata() [1/5]

keyring_common::meta::Metadata::Metadata ( const std::string  key_id,
const std::string  owner_id 
)

Constructor.

◆ Metadata() [2/5]

keyring_common::meta::Metadata::Metadata ( const char *  key_id,
const char *  owner_id 
)

◆ Metadata() [3/5]

keyring_common::meta::Metadata::Metadata ( )

◆ Metadata() [4/5]

keyring_common::meta::Metadata::Metadata ( const Metadata src)

Copy constructor.

◆ Metadata() [5/5]

keyring_common::meta::Metadata::Metadata ( Metadata &&  src)
noexcept

Move constructor.

◆ ~Metadata()

keyring_common::meta::Metadata::~Metadata ( )

Destructor.

Member Function Documentation

◆ create_hash_key()

void keyring_common::meta::Metadata::create_hash_key ( )
private

create hash key

◆ hash_key()

const std::string keyring_common::meta::Metadata::hash_key ( ) const
inline

◆ key_id()

const std::string keyring_common::meta::Metadata::key_id ( ) const

Get key ID.

◆ operator=() [1/2]

Metadata & keyring_common::meta::Metadata::operator= ( const Metadata src)
default

Assignment operator.

◆ operator=() [2/2]

Metadata & keyring_common::meta::Metadata::operator= ( Metadata &&  src)
noexcept

◆ operator==()

bool keyring_common::meta::Metadata::operator== ( const Metadata other) const
inline

◆ owner_id()

const std::string keyring_common::meta::Metadata::owner_id ( ) const

Get owner info.

◆ valid()

bool keyring_common::meta::Metadata::valid ( ) const

Validity of metadata object.

Member Data Documentation

◆ hash_key_

std::string keyring_common::meta::Metadata::hash_key_
private

Hash key.

◆ key_id_

std::string keyring_common::meta::Metadata::key_id_
private

Consumer specific key id.

◆ owner_id_

std::string keyring_common::meta::Metadata::owner_id_
private

Owner information.

◆ valid_

bool keyring_common::meta::Metadata::valid_ {false}
private

Validity of metadata.


The documentation for this class was generated from the following files: