MCPcopy Create free account
hub / github.com/bufbuild/buf / GetWorkspaceDepManager

Method GetWorkspaceDepManager

private/buf/bufctl/controller.go:319–334  ·  view source on GitHub ↗
(
	ctx context.Context,
	dirPath string,
	options ...FunctionOption,
)

Source from the content-addressed store, hash-verified

317}
318
319func (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
336func (c *controller) GetImage(
337 ctx context.Context,

Callers

nothing calls this directly

Calls 5

newFunctionOptionsFunction · 0.85
optionStruct · 0.85
GetDirRefMethod · 0.65

Tested by

no test coverage detected