Github   Telegram
Loading...
Searching...
No Matches
Public Member Functions | List of all members
storages::secdist::Secdist Class Referencefinal

Client to retrieve credentials from the components::Secdist and to subscribe to their updates. More...

#include <userver/storages/secdist/secdist.hpp>

Public Member Functions

 Secdist (SecdistConfig::Settings settings)
 
const storages::secdist::SecdistConfigGet () const
 
rcu::ReadablePtr< storages::secdist::SecdistConfigGetSnapshot () const
 
template<typename Class >
concurrent::AsyncEventSubscriberScope UpdateAndListen (Class *obj, std::string_view name, void(Class::*func)(const storages::secdist::SecdistConfig &secdist))
 
bool IsPeriodicUpdateEnabled () const
 

Detailed Description

Client to retrieve credentials from the components::Secdist and to subscribe to their updates.

Definition at line 119 of file secdist.hpp.

Member Function Documentation

◆ Get()

const storages::secdist::SecdistConfig & storages::secdist::Secdist::Get ( ) const

Returns secdist data loaded on service start. Does not support secdist updating during service work.

◆ GetSnapshot()

rcu::ReadablePtr< storages::secdist::SecdistConfig > storages::secdist::Secdist::GetSnapshot ( ) const

Returns fresh secdist data (from last update). Supports secdist updating during service work.

◆ UpdateAndListen()

template<typename Class >
concurrent::AsyncEventSubscriberScope storages::secdist::Secdist::UpdateAndListen ( Class *  obj,
std::string_view  name,
void(Class::*)(const storages::secdist::SecdistConfig &secdist)  func 
)

Subscribes to secdist updates using a member function, named OnSecdistUpdate by convention. Also immediately invokes the function with the current secdist data.

Definition at line 154 of file secdist.hpp.


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