( ctx context.Context, value string, )
| 370 | } |
| 371 | |
| 372 | func (a *refParser) GetSourceRef( |
| 373 | ctx context.Context, |
| 374 | value string, |
| 375 | ) (SourceRef, error) { |
| 376 | parsedRef, err := a.getParsedRef(ctx, value, sourceFormats) |
| 377 | if err != nil { |
| 378 | return nil, err |
| 379 | } |
| 380 | parsedBucketRef, ok := parsedRef.(internal.ParsedBucketRef) |
| 381 | if !ok { |
| 382 | // this should never happen |
| 383 | return nil, fmt.Errorf("invalid ParsedRef type for source: %T", parsedRef) |
| 384 | } |
| 385 | return newSourceRef(parsedBucketRef), nil |
| 386 | } |
| 387 | |
| 388 | func (a *refParser) GetSourceRefForInputConfig( |
| 389 | ctx context.Context, |
nothing calls this directly
no test coverage detected