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

Method GetImageForInputConfig

private/buf/bufctl/controller.go:349–360  ·  view source on GitHub ↗
(
	ctx context.Context,
	inputConfig bufconfig.InputConfig,
	options ...FunctionOption,
)

Source from the content-addressed store, hash-verified

347}
348
349func (c *controller) GetImageForInputConfig(
350 ctx context.Context,
351 inputConfig bufconfig.InputConfig,
352 options ...FunctionOption,
353) (_ bufimage.Image, retErr error) {
354 defer c.handleFileAnnotationSetRetError(&retErr)
355 functionOptions := newFunctionOptions(c)
356 for _, option := range options {
357 option(functionOptions)
358 }
359 return c.getImageForInputConfig(ctx, inputConfig, functionOptions)
360}
361
362func (c *controller) GetImageForWorkspace(
363 ctx context.Context,

Callers

nothing calls this directly

Calls 4

newFunctionOptionsFunction · 0.85
optionStruct · 0.85

Tested by

no test coverage detected