/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cloud/blockstore/apps/client/main.cpp
27 строк
838 B
Belyaev Igor
use iamtoken-client in blockstore-client (#22)
09 янв 2024, 16:07
Не верифицирован
09 янв 2024, 16:07
fb04a43
Код
Авторство
О чём код?
#include <cloud/blockstore/apps/client/lib/app.h> #include <cloud/blockstore/apps/client/lib/bootstrap.h> //////////////////////////////////////////////////////////////////////////////// int main(int argc, const char* argv[]) { using namespace NCloud::NBlockStore::NClient; auto clientFactories = std::make_shared<TClientFactories>(); clientFactories->IamClientFactory = [] ( NCloud::NIamClient::TIamClientConfigPtr config, NCloud::ILoggingServicePtr logging, NCloud::ISchedulerPtr scheduler, NCloud::ITimerPtr timer) { Y_UNUSED(config); Y_UNUSED(logging); Y_UNUSED(scheduler); Y_UNUSED(timer); return NCloud::NIamClient::CreateIamTokenClientStub(); }; ConfigureSignals(); return TApp::Instance().Run(clientFactories, argc, argv); }