(path string)
| 46 | } |
| 47 | |
| 48 | func loadBundleFromJSONFile(path string) ([]*api.Attestation, error) { |
| 49 | b, err := bundle.LoadJSONFromPath(path) |
| 50 | if err != nil { |
| 51 | return nil, err |
| 52 | } |
| 53 | |
| 54 | return []*api.Attestation{{Bundle: b}}, nil |
| 55 | } |
| 56 | |
| 57 | func loadBundlesFromJSONLinesFile(path string) ([]*api.Attestation, error) { |
| 58 | fileContent, err := os.ReadFile(path) |
no outgoing calls