Beispiel #1
0
 private static void HandleDockerFileArgs(YamlSequenceNode yamlSequenceNode, Dictionary <string, string> dockerArguments)
 {
     foreach (var child in yamlSequenceNode.Children)
     {
         YamlParser.ThrowIfNotYamlMapping(child);
         HandleServiceDockerArgsNameMapping((YamlMappingNode)child, dockerArguments);
     }
 }
Beispiel #2
0
 private static void HandleServiceConfiguration(YamlSequenceNode yamlSequenceNode, List <ConfigConfigurationSource> configuration)
 {
     foreach (var child in yamlSequenceNode.Children)
     {
         YamlParser.ThrowIfNotYamlMapping(child);
         var config = new ConfigConfigurationSource();
         HandleServiceConfigurationNameMapping((YamlMappingNode)child, config);
         configuration.Add(config);
     }
 }
Beispiel #3
0
 private static void HandleBuildProperties(YamlSequenceNode yamlSequenceNode, List <BuildProperty> buildProperties)
 {
     foreach (var child in yamlSequenceNode.Children)
     {
         YamlParser.ThrowIfNotYamlMapping(child);
         var buildProperty = new BuildProperty();
         HandleServiceBuildPropertyNameMapping((YamlMappingNode)child, buildProperty);
         buildProperties.Add(buildProperty);
     }
 }
Beispiel #4
0
 private static void HandleServiceVolumes(YamlSequenceNode yamlSequenceNode, List <ConfigVolume> volumes)
 {
     foreach (var child in yamlSequenceNode.Children)
     {
         YamlParser.ThrowIfNotYamlMapping(child);
         var volume = new ConfigVolume();
         HandleServiceVolumeNameMapping((YamlMappingNode)child, volume);
         volumes.Add(volume);
     }
 }
Beispiel #5
0
 private static void HandleServiceBindings(YamlSequenceNode yamlSequenceNode, List <ConfigServiceBinding> bindings)
 {
     foreach (var child in yamlSequenceNode.Children)
     {
         YamlParser.ThrowIfNotYamlMapping(child);
         var binding = new ConfigServiceBinding();
         HandleServiceBindingNameMapping((YamlMappingNode)child, binding);
         bindings.Add(binding);
     }
 }
Beispiel #6
0
 public static void HandleServiceMapping(YamlSequenceNode yamlSequenceNode, List <ConfigService> services)
 {
     foreach (var child in yamlSequenceNode.Children)
     {
         YamlParser.ThrowIfNotYamlMapping(child);
         var service = new ConfigService();
         HandleServiceNameMapping((YamlMappingNode)child, service);
         services.Add(service);
     }
 }
Beispiel #7
0
 private static void HandleIngressRules(YamlSequenceNode yamlSequenceNode, List <ConfigIngressRule> rules)
 {
     foreach (var child in yamlSequenceNode.Children)
     {
         YamlParser.ThrowIfNotYamlMapping(child);
         var rule = new ConfigIngressRule();
         HandleIngressRuleMapping((YamlMappingNode)child, rule);
         rules.Add(rule);
     }
 }
Beispiel #8
0
 public static void HandleIngress(YamlSequenceNode yamlSequenceNode, List <ConfigIngress> ingress)
 {
     foreach (var child in yamlSequenceNode.Children)
     {
         YamlParser.ThrowIfNotYamlMapping(child);
         var configIngress = new ConfigIngress();
         HandleIngressMapping((YamlMappingNode)child, configIngress);
         ingress.Add(configIngress);
     }
 }