userver: userver/ydb/credentials.hpp Source File
Loading...
Searching...
No Matches
credentials.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/ydb/credentials.hpp
4/// @brief @copybrief ydb::CredentialsProviderComponent
5
6#include <memory>
7#include <string>
8
9#include <userver/components/loggable_component_base.hpp>
10#include <userver/yaml_config/fwd.hpp>
11
12namespace NYdb {
13class ICredentialsProviderFactory;
14} // namespace NYdb
15
16USERVER_NAMESPACE_BEGIN
17
18namespace ydb {
19
21 public:
22 using components::LoggableComponentBase::LoggableComponentBase;
23
24 virtual std::shared_ptr<NYdb::ICredentialsProviderFactory>
25 CreateCredentialsProviderFactory(
26 const yaml_config::YamlConfig& credentials) const = 0;
27};
28
29} // namespace ydb
30
31USERVER_NAMESPACE_END