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

Struct BlockTupleSpec

hcldec/spec.go:588–593  ·  view source on GitHub ↗

A BlockTupleSpec is a Spec that produces a cty tuple of the results of decoding all of the nested blocks of a given type, using a nested spec. This is similar to BlockListSpec, but it permits the nested blocks to have different result types in situations where cty.DynamicPseudoType attributes are p

Source from the content-addressed store, hash-verified

586// different result types in situations where cty.DynamicPseudoType attributes
587// are present.
588type BlockTupleSpec struct {
589 TypeName string
590 Nested Spec
591 MinItems int
592 MaxItems int
593}
594
595func (s *BlockTupleSpec) visitSameBodyChildren(cb visitFunc) {
596 // leaf node ("Nested" does not use the same body)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected