(values []string)
| 568 | } |
| 569 | |
| 570 | func parseContextNames(values []string) (map[string]string, error) { |
| 571 | if len(values) == 0 { |
| 572 | return nil, nil |
| 573 | } |
| 574 | result := make(map[string]string, len(values)) |
| 575 | for _, value := range values { |
| 576 | kv := strings.SplitN(value, "=", 2) |
| 577 | if len(kv) != 2 { |
| 578 | return nil, fmt.Errorf("invalid context value: %s, expected key=value", value) |
| 579 | } |
| 580 | result[kv[0]] = kv[1] |
| 581 | } |
| 582 | return result, nil |
| 583 | } |
| 584 | |
| 585 | var ( |
| 586 | ErrOCILayoutPrefixNotFound = errors.New("OCI layout prefix not found") |
no outgoing calls
no test coverage detected
searching dependent graphs…