( ctx context.Context, inputConfig bufconfig.InputConfig, )
| 386 | } |
| 387 | |
| 388 | func (a *refParser) GetSourceRefForInputConfig( |
| 389 | ctx context.Context, |
| 390 | inputConfig bufconfig.InputConfig, |
| 391 | ) (SourceRef, error) { |
| 392 | parsedRef, err := a.getParsedRefForInputConfig(ctx, inputConfig, sourceFormats) |
| 393 | if err != nil { |
| 394 | return nil, err |
| 395 | } |
| 396 | parsedBucketRef, ok := parsedRef.(internal.ParsedBucketRef) |
| 397 | if !ok { |
| 398 | // this should never happen |
| 399 | return nil, fmt.Errorf("invalid ParsedRef type for source: %T", parsedRef) |
| 400 | } |
| 401 | return newSourceRef(parsedBucketRef), nil |
| 402 | } |
| 403 | |
| 404 | func (a *refParser) GetDirRef( |
| 405 | ctx context.Context, |
nothing calls this directly
no test coverage detected