---------- JSON parsing -----------------------------------------------------
(data []byte)
| 322 | // ---------- JSON parsing ----------------------------------------------------- |
| 323 | |
| 324 | func parseRepoJSON(data []byte) (map[string]RepoEntry, error) { |
| 325 | var out map[string]RepoEntry |
| 326 | if err := json.Unmarshal(data, &out); err != nil { |
| 327 | return nil, fmt.Errorf("repoconfig: parse: %w", err) |
| 328 | } |
| 329 | return out, nil |
| 330 | } |
| 331 | |
| 332 | func repoConfigKey(kind entities.Kind) string { |
| 333 | if kind == entities.KindInstruction { |
no outgoing calls