terraform/config/configschema
Martin Atkins 22d140e883 configschema: Block.CoerceValue method
The usual way to use a configschema.Block is to obtain a hcldec spec from
it and then decode an hcl.Body. There are inevitably situations though
where a body has already been decoded into a cty.Value before we know
which schema we need to use.

This new method CoerceValue is intended to deal with this case, applying
the schema to an already-decoded value in what should be an intuitive way
for most situations.
2018-10-16 18:24:47 -07:00
..
coerce_value.go configschema: Block.CoerceValue method 2018-10-16 18:24:47 -07:00
coerce_value_test.go configschema: Block.CoerceValue method 2018-10-16 18:24:47 -07:00
decoder_spec.go config/configschema: Block.ImpliedType delegates to zcldec 2017-10-04 16:35:11 -07:00
decoder_spec_test.go config/configschema: Block.DecoderSpec 2017-10-04 16:35:11 -07:00
doc.go config/configschema: stub out initial API 2017-10-04 16:35:11 -07:00
implied_type.go config/configschema: Block.ImpliedType delegates to zcldec 2017-10-04 16:35:11 -07:00
implied_type_test.go config/configschema: Block.ImpliedType method 2017-10-04 16:35:11 -07:00
internal_validate.go config/configschema: InternalValidate for blocks 2017-10-04 16:35:11 -07:00
internal_validate_test.go config/configschema: InternalValidate for blocks 2017-10-04 16:35:11 -07:00
nestingmode_string.go Update various files for new version of "stringer" 2017-12-11 13:26:29 -08:00
schema.go configschema: include description in schema 2018-10-16 18:24:47 -07:00