MCPcopy
hub / github.com/hashicorp/hcl / BlockObjectSpec

Struct BlockObjectSpec

hcldec/spec.go:1032–1036  ·  view source on GitHub ↗

A BlockObjectSpec is a Spec that produces a cty object of the results of decoding all of the nested blocks of a given type, using a nested spec. One level of object structure is created for each of the given label names. There must be at least one given label name. This is similar to BlockMapSpec,

Source from the content-addressed store, hash-verified

1030// different result types in situations where cty.DynamicPseudoType attributes
1031// are present.
1032type BlockObjectSpec struct {
1033 TypeName string
1034 LabelNames []string
1035 Nested Spec
1036}
1037
1038func (s *BlockObjectSpec) visitSameBodyChildren(cb visitFunc) {
1039 // leaf node ("Nested" does not use the same body)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected