add schema.InternalMap

This exposes the internal schemaMap for use by the new provider shims.
This commit is contained in:
James Bardin 2018-07-31 16:08:53 -04:00 committed by Martin Atkins
parent f4416ee1df
commit bcc8be7400
1 changed files with 5 additions and 0 deletions

View File

@ -364,6 +364,11 @@ func (s *Schema) finalizeDiff(d *terraform.ResourceAttrDiff, customized bool) *t
return d return d
} }
// InternalMap is used to aid in the transition to the new schema types and
// protocol. The name is not meant to convey any usefulness, as this is not to
// be used directly by any providers.
type InternalMap = schemaMap
// schemaMap is a wrapper that adds nice functions on top of schemas. // schemaMap is a wrapper that adds nice functions on top of schemas.
type schemaMap map[string]*Schema type schemaMap map[string]*Schema