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

Method GetImageForWorkspace

private/buf/bufctl/controller.go:362–373  ·  view source on GitHub ↗
(
	ctx context.Context,
	workspace bufworkspace.Workspace,
	options ...FunctionOption,
)

Source from the content-addressed store, hash-verified

360}
361
362func (c *controller) GetImageForWorkspace(
363 ctx context.Context,
364 workspace bufworkspace.Workspace,
365 options ...FunctionOption,
366) (_ bufimage.Image, retErr error) {
367 defer c.handleFileAnnotationSetRetError(&retErr)
368 functionOptions := newFunctionOptions(c)
369 for _, option := range options {
370 option(functionOptions)
371 }
372 return c.getImageForWorkspace(ctx, workspace, functionOptions)
373}
374
375func (c *controller) GetTargetImageWithConfigsAndCheckClient(
376 ctx context.Context,

Callers

nothing calls this directly

Calls 4

getImageForWorkspaceMethod · 0.95
newFunctionOptionsFunction · 0.85
optionStruct · 0.85

Tested by

no test coverage detected