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

Method GetImage

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

Source from the content-addressed store, hash-verified

334}
335
336func (c *controller) GetImage(
337 ctx context.Context,
338 input string,
339 options ...FunctionOption,
340) (_ bufimage.Image, retErr error) {
341 defer c.handleFileAnnotationSetRetError(&retErr)
342 functionOptions := newFunctionOptions(c)
343 for _, option := range options {
344 option(functionOptions)
345 }
346 return c.getImage(ctx, input, functionOptions)
347}
348
349func (c *controller) GetImageForInputConfig(
350 ctx context.Context,

Callers

nothing calls this directly

Calls 4

getImageMethod · 0.95
newFunctionOptionsFunction · 0.85
optionStruct · 0.85

Tested by

no test coverage detected