/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
cloud/filestore/apps/client/main.cpp
28 строк
893 B
yegorskii
issue-2631: add iam token support to filestore-client (#2677)
12 дек 2024, 11:01
Не верифицирован
12 дек 2024, 11:01
159d1f1
Код
Авторство
О чём код?
#include <cloud/filestore/apps/client/lib/app.h> #include <cloud/filestore/apps/client/lib/bootstrap.h> #include <cloud/storage/core/libs/iam/iface/client.h> //////////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { using namespace NCloud::NFileStore::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(std::move(clientFactories), argc, argv); }