MCPcopy
hub / github.com/hashicorp/packer / decodeHCL2Spec

Function decodeHCL2Spec

hcl2template/decode.go:19–21  ·  view source on GitHub ↗
(body hcl.Body, ectx *hcl.EvalContext, dec Decodable)

Source from the content-addressed store, hash-verified

17}
18
19func decodeHCL2Spec(body hcl.Body, ectx *hcl.EvalContext, dec Decodable) (cty.Value, hcl.Diagnostics) {
20 return hcldec.Decode(body, dec.ConfigSpec(), ectx)
21}

Callers 9

startBuilderMethod · 0.85
evaluateDatasourceMethod · 0.85
GetBuildsMethod · 0.85
HCL2PrepareMethod · 0.85
startDatasourceMethod · 0.85
HCL2PrepareMethod · 0.85

Calls 1

ConfigSpecMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…