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

Function NewTextImageInputConfig

private/bufpkg/bufconfig/input_config.go:308–320  ·  view source on GitHub ↗

NewTextImageInputConfig returns an input config for a text image.

(
	location string,
	compression string,
)

Source from the content-addressed store, hash-verified

306
307// NewTextImageInputConfig returns an input config for a text image.
308func NewTextImageInputConfig(
309 location string,
310 compression string,
311) (InputConfig, error) {
312 if location == "" {
313 return nil, errors.New("empty location for text image")
314 }
315 return &inputConfig{
316 inputConfigType: InputConfigTypeTextImage,
317 location: location,
318 compression: compression,
319 }, nil
320}
321
322// NewYAMLImageInputConfig returns an input config for a yaml image.
323func NewYAMLImageInputConfig(

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…