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

Function NewJSONImageInputConfig

private/bufpkg/bufconfig/input_config.go:293–305  ·  view source on GitHub ↗

NewJSONImageInputConfig returns an input config for a JSON image.

(
	location string,
	compression string,
)

Source from the content-addressed store, hash-verified

291
292// NewJSONImageInputConfig returns an input config for a JSON image.
293func NewJSONImageInputConfig(
294 location string,
295 compression string,
296) (InputConfig, error) {
297 if location == "" {
298 return nil, errors.New("empty location for JSON image")
299 }
300 return &inputConfig{
301 inputConfigType: InputConfigTypeJSONImage,
302 location: location,
303 compression: compression,
304 }, nil
305}
306
307// NewTextImageInputConfig returns an input config for a text image.
308func NewTextImageInputConfig(

Callers 1

GetInputConfigForStringFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…