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

Function NewYAMLImageInputConfig

private/bufpkg/bufconfig/input_config.go:323–335  ·  view source on GitHub ↗

NewYAMLImageInputConfig returns an input config for a yaml image.

(
	location string,
	compression string,
)

Source from the content-addressed store, hash-verified

321
322// NewYAMLImageInputConfig returns an input config for a yaml image.
323func NewYAMLImageInputConfig(
324 location string,
325 compression string,
326) (InputConfig, error) {
327 if location == "" {
328 return nil, errors.New("empty location for yaml image")
329 }
330 return &inputConfig{
331 inputConfigType: InputConfigTypeYAMLImage,
332 location: location,
333 compression: compression,
334 }, nil
335}
336
337// *** PRIVATE ***
338

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…