(node *yaml.Node, key string)
| 572 | } |
| 573 | |
| 574 | func yamlMappingValue(node *yaml.Node, key string) *yaml.Node { |
| 575 | if node == nil || node.Kind != yaml.MappingNode { |
| 576 | return nil |
| 577 | } |
| 578 | for i := 0; i+1 < len(node.Content); i += 2 { |
| 579 | keyNode := node.Content[i] |
| 580 | if keyNode == nil || keyNode.Value != key { |
| 581 | continue |
| 582 | } |
| 583 | return node.Content[i+1] |
| 584 | } |
| 585 | return nil |
| 586 | } |
| 587 | |
| 588 | var newPluginStoreClient = func(cfg *config.Config) sdkpluginstore.Client { |
| 589 | client := &http.Client{} |
no outgoing calls
no test coverage detected