Documentation ¶
Overview ¶
Package helper contains schema.Schema helper functions. This package is designed similarly to the terraform/helper/schema package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceSchemaFromResourceSchema ¶
DataSourceSchemaFromResourceSchema copies the schema map from a resource for use in a data source. In this way, the attributes of the data source and resource definitions are always in-sync and reduces errors associated with redefining and matching the schema's between the two. This also enables a data source full access to the properties of the associated resource for use in other resources.
When copying the schema definition, the struct attributes are modified for use with schema.Type and schema.Description left unmodified.
Types ¶
This section is empty.