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

Struct BlockMapSpec

hcldec/spec.go:874–878  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

872// One level of map structure is created for each of the given label names.
873// There must be at least one given label name.
874type BlockMapSpec struct {
875 TypeName string
876 LabelNames []string
877 Nested Spec
878}
879
880func (s *BlockMapSpec) visitSameBodyChildren(cb visitFunc) {
881 // leaf node ("Nested" does not use the same body)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected