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

Method getImageForInputConfig

private/buf/bufctl/controller.go:915–925  ·  view source on GitHub ↗
(
	ctx context.Context,
	inputConfig bufconfig.InputConfig,
	functionOptions *functionOptions,
)

Source from the content-addressed store, hash-verified

913}
914
915func (c *controller) getImageForInputConfig(
916 ctx context.Context,
917 inputConfig bufconfig.InputConfig,
918 functionOptions *functionOptions,
919) (bufimage.Image, error) {
920 ref, err := c.buffetchRefParser.GetRefForInputConfig(ctx, inputConfig)
921 if err != nil {
922 return nil, err
923 }
924 return c.getImageForRef(ctx, ref, functionOptions)
925}
926
927func (c *controller) getImageForRef(
928 ctx context.Context,

Callers 1

Calls 2

getImageForRefMethod · 0.95
GetRefForInputConfigMethod · 0.65

Tested by

no test coverage detected