hcl/hcldec
Martin Atkins ed8144cda1 hcldec: BlockTupleSpec and BlockObjectSpec
When nested attributes are of type cty.DynamicPseudoType, a block spec
that is backed by a cty collection is annoying to use because it requires
all of the blocks to have homogenous types for such attributes.

These new specs are similar to BlockListSpec and BlockMapSpec
respectively, but permit each nested block result to have its own distinct
type.

In return for this flexibility, we lose the ability to predict the exact
type of the result: these specs must just indicate their type as being
cty.DynamicPseudoType themselves, since we need to know how many blocks
there are and what types are inside them before we can know our final
result type.
2018-08-22 12:31:30 -07:00
..
block_labels.go hcldec: BlockLabelSpec decoding 2017-10-03 15:59:20 -07:00
decode.go hcldec: ImpliedType function 2017-10-03 16:27:34 -07:00
doc.go Update doc comments and readmes for zcl -> HCL. 2017-09-11 16:56:31 -07:00
gob.go hcldec: BlockLabelSpec decoding 2017-10-03 15:59:20 -07:00
public_test.go hcldec: BlockTupleSpec and BlockObjectSpec 2018-08-22 12:31:30 -07:00
public.go hcldec: Fix DefaultSpec to allow attribute and block specs 2018-05-22 15:06:42 -07:00
schema.go hcldec: ImpliedSchema must visit deep specs 2017-10-03 12:17:47 -07:00
spec_test.go hcldec: BlockAttrsSpec spec type 2018-08-09 16:53:16 -07:00
spec.go hcldec: BlockTupleSpec and BlockObjectSpec 2018-08-22 12:31:30 -07:00
variables_test.go hcldec: BlockAttrsSpec spec type 2018-08-09 16:53:16 -07:00
variables.go hcldec: Variables must visit deeply-nested specifications 2018-05-24 12:11:53 -07:00