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

Method getImage

private/buf/bufctl/controller.go:903–913  ·  view source on GitHub ↗
(
	ctx context.Context,
	input string,
	functionOptions *functionOptions,
)

Source from the content-addressed store, hash-verified

901}
902
903func (c *controller) getImage(
904 ctx context.Context,
905 input string,
906 functionOptions *functionOptions,
907) (bufimage.Image, error) {
908 ref, err := c.buffetchRefParser.GetRef(ctx, input)
909 if err != nil {
910 return nil, err
911 }
912 return c.getImageForRef(ctx, ref, functionOptions)
913}
914
915func (c *controller) getImageForInputConfig(
916 ctx context.Context,

Callers 1

GetImageMethod · 0.95

Calls 2

getImageForRefMethod · 0.95
GetRefMethod · 0.65

Tested by

no test coverage detected