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