183833affc
In order to parse provider, resource and data source configuration from HCL2 config files, we need to know the relevant configuration schema. This new method allows Terraform Core to request these from a provider. This is a breaking change to this interface, so all of its implementers in this package are updated too. This includes concrete implementations of the new method in helper/schema that use the schema conversion code added in an earlier commit to produce a configschema.Block automatically. Plugins compiled against prior versions of helper/schema will not have support for this method, and so calls to them will fail. Callers of this new method will therefore need to sniff for support using the SchemaAvailable field added to both ResourceType and DataSource. This careful handling will need to persist until next time we increment the plugin protocol version, at which point we can make the breaking change of requiring this information to be available. |
||
---|---|---|
.. | ||
discovery | ||
client.go | ||
plugin.go | ||
plugin_test.go | ||
resource_provider.go | ||
resource_provider_test.go | ||
resource_provisioner.go | ||
resource_provisioner_test.go | ||
serve.go | ||
ui_input.go | ||
ui_input_test.go | ||
ui_output.go | ||
ui_output_test.go |