( ctx context.Context, value string, )
| 402 | } |
| 403 | |
| 404 | func (a *refParser) GetDirRef( |
| 405 | ctx context.Context, |
| 406 | value string, |
| 407 | ) (DirRef, error) { |
| 408 | parsedRef, err := a.getParsedRef(ctx, value, dirFormats) |
| 409 | if err != nil { |
| 410 | return nil, err |
| 411 | } |
| 412 | parsedDirRef, ok := parsedRef.(internal.ParsedDirRef) |
| 413 | if !ok { |
| 414 | // this should never happen |
| 415 | return nil, fmt.Errorf("invalid ParsedRef type for source: %T", parsedRef) |
| 416 | } |
| 417 | return newDirRef(parsedDirRef), nil |
| 418 | } |
| 419 | |
| 420 | func (a *refParser) GetDirRefForInputConfig( |
| 421 | ctx context.Context, |
nothing calls this directly
no test coverage detected