(node *yaml.Node, key string)
| 139 | } |
| 140 | |
| 141 | func yamlMappingValue(node *yaml.Node, key string) *yaml.Node { |
| 142 | if node == nil || node.Kind != yaml.MappingNode { |
| 143 | return nil |
| 144 | } |
| 145 | for index := 0; index+1 < len(node.Content); index += 2 { |
| 146 | if node.Content[index] != nil && node.Content[index].Value == key { |
| 147 | return node.Content[index+1] |
| 148 | } |
| 149 | } |
| 150 | return nil |
| 151 | } |
| 152 | |
| 153 | func normalizedConfigNode(item config.PluginInstanceConfig, enabled bool) *yaml.Node { |
| 154 | if item.Raw.Kind == 0 { |
no outgoing calls
no test coverage detected