aboutsummaryrefslogtreecommitdiffstats
path: root/ydb/library/yaml_config/yaml_config_parser.h
blob: ac6a293b1a82e76837a4bd62c6d06e6f5bcfdcc9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <string>
#include <google/protobuf/message.h>

#include <util/generic/algorithm.h>
#include <library/cpp/yaml/as/tstring.h>

#include <contrib/libs/yaml-cpp/include/yaml-cpp/yaml.h>
#include <library/cpp/json/writer/json_value.h>
#include <library/cpp/protobuf/json/json2proto.h>
#include <ydb/core/protos/config.pb.h>


namespace NKikimr::NYaml {
    NJson::TJsonValue Yaml2Json(const YAML::Node& yaml, bool isRoot);

    NKikimrBlobStorage::TConfigRequest BuildInitDistributedStorageCommand(const TString& data);

    void TransformConfig(NJson::TJsonValue& config, bool relaxed = false);

    void Parse(const TString& data, NKikimrConfig::TAppConfig& config);
}