MCPcopy Index your code
hub / github.com/hashicorp/packer / decodeConfig

Function decodeConfig

config.go:31–34  ·  view source on GitHub ↗

decodeConfig decodes configuration in JSON format from the given io.Reader into the config object pointed to.

(r io.Reader, c *config)

Source from the content-addressed store, hash-verified

29// decodeConfig decodes configuration in JSON format from the given io.Reader into
30// the config object pointed to.
31func decodeConfig(r io.Reader, c *config) error {
32 decoder := json.NewDecoder(r)
33 return decoder.Decode(c)
34}
35
36// LoadExternalComponentsFromConfig loads plugins defined in RawBuilders, RawProvisioners, and RawPostProcessors.
37func (c *config) LoadExternalComponentsFromConfig() error {

Callers 2

TestDecodeConfigFunction · 0.85
loadConfigFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDecodeConfigFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…