MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / ParseContainerConfig

Function ParseContainerConfig

env/env_yaml.cc:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150absl::Status ParseContainerConfig(Config& config, absl::string_view yaml,
151 const YAML::Node& root) {
152 const YAML::Node container = root["container"];
153 if (container.IsDefined()) {
154 if (!container.IsScalar()) {
155 return YamlError(yaml, container, "Node 'container' is not a string");
156 }
157 config.SetContainerConfig({.name = GetString(yaml, container)});
158 }
159 return absl::OkStatus();
160}
161
162absl::Status ParseExtensionConfigs(Config& config, absl::string_view yaml,
163 const YAML::Node& root) {

Callers 1

EnvConfigFromYamlFunction · 0.85

Calls 3

YamlErrorFunction · 0.85
GetStringFunction · 0.85
SetContainerConfigMethod · 0.80

Tested by

no test coverage detected