( ctx context.Context, dirPath string, options ...FunctionOption, )
| 317 | } |
| 318 | |
| 319 | func (c *controller) GetWorkspaceDepManager( |
| 320 | ctx context.Context, |
| 321 | dirPath string, |
| 322 | options ...FunctionOption, |
| 323 | ) (_ bufworkspace.WorkspaceDepManager, retErr error) { |
| 324 | defer c.handleFileAnnotationSetRetError(&retErr) |
| 325 | functionOptions := newFunctionOptions(c) |
| 326 | for _, option := range options { |
| 327 | option(functionOptions) |
| 328 | } |
| 329 | dirRef, err := c.buffetchRefParser.GetDirRef(ctx, dirPath) |
| 330 | if err != nil { |
| 331 | return nil, err |
| 332 | } |
| 333 | return c.getWorkspaceDepManagerForDirRef(ctx, dirRef, functionOptions) |
| 334 | } |
| 335 | |
| 336 | func (c *controller) GetImage( |
| 337 | ctx context.Context, |
nothing calls this directly
no test coverage detected