( ctx context.Context, value string, )
| 470 | } |
| 471 | |
| 472 | func (a *refParser) GetModuleRef( |
| 473 | ctx context.Context, |
| 474 | value string, |
| 475 | ) (ModuleRef, error) { |
| 476 | parsedRef, err := a.getParsedRef(ctx, value, moduleFormats) |
| 477 | if err != nil { |
| 478 | return nil, err |
| 479 | } |
| 480 | parsedModuleRef, ok := parsedRef.(internal.ParsedModuleRef) |
| 481 | if !ok { |
| 482 | // this should never happen |
| 483 | return nil, fmt.Errorf("invalid ParsedRef type for source: %T", parsedRef) |
| 484 | } |
| 485 | return newModuleRef(parsedModuleRef), nil |
| 486 | } |
| 487 | |
| 488 | func (a *refParser) GetModuleRefForInputConfig( |
| 489 | ctx context.Context, |
nothing calls this directly
no test coverage detected