(ctx context.Context, fetcher *missTrackFetcher, schemaBlob *schema.Blob)
| 314 | } |
| 315 | |
| 316 | func (ix *Index) verifySignature(ctx context.Context, fetcher *missTrackFetcher, schemaBlob *schema.Blob) (*jsonsign.VerifyRequest, error) { |
| 317 | tf := &trackErrorsFetcher{f: fetcher} |
| 318 | vr := jsonsign.NewVerificationRequest(schemaBlob.JSON(), blob.NewSerialFetcher(ix.KeyFetcher, tf)) |
| 319 | _, err := vr.Verify(ctx) |
| 320 | |
| 321 | if err != nil { |
| 322 | // TODO(bradfitz): ask if the vr.Err.(jsonsign.Error).IsPermanent() and retry |
| 323 | // later if it's not permanent? |
| 324 | if tf.hasErrNotExist() { |
| 325 | return nil, errMissingDep |
| 326 | } |
| 327 | return nil, err |
| 328 | } |
| 329 | |
| 330 | return vr, nil |
| 331 | } |
| 332 | |
| 333 | func (ix *Index) populateMutationMapForSchema(ctx context.Context, fetcher *missTrackFetcher, schemaBlob *schema.Blob, mm *mutationMap) error { |
| 334 | switch schemaBlob.Type() { |
no test coverage detected