terraform/plugin
James Bardin 924b97238f Handle StateFuncs in provider shim
Any state modifying functions can only be run once during the plan-apply
cycle. When regenerating the Diff during ApplyResourceChange, strip out
all StateFunc and CustomizeDiff functions from the schema.

Thew NewExtra diff field was where config data that was modified by a
StateFunc was stored, and needs to be maintained between plan and apply.

During PlanResourceChange, store any NewExtra data from the Diff in the
PlannedPrivate data, and re-insert the NewExtra data into the Diff
generated during ApplyResourceChange.
2018-12-03 18:12:02 -05:00
..
convert providers: Consistently use int64 for schema versions 2018-11-30 11:22:39 -08:00
discovery Use registry alias to fetch providers 2018-11-28 11:54:39 -06:00
mock_proto plugin: Establish our current plugin protocol as version 5 2018-11-19 09:56:41 -08:00
client.go terraform: More wiring in of new provider types 2018-10-16 19:12:54 -07:00
grpc_provider.go Handle StateFuncs in provider shim 2018-12-03 18:12:02 -05:00
grpc_provider_test.go plugin: Establish our current plugin protocol as version 5 2018-11-19 09:56:41 -08:00
grpc_provisioner.go plugin: Establish our current plugin protocol as version 5 2018-11-19 09:56:41 -08:00
grpc_provisioner_test.go plugin: Establish our current plugin protocol as version 5 2018-11-19 09:56:41 -08:00
plugin.go terraform: More wiring in of new provider types 2018-10-16 19:12:54 -07:00
plugin_test.go Use hashicorp/go-plugin for plugin system 2016-05-10 14:14:47 -04:00
resource_provider.go serve the new version 5 grpc plugins 2018-10-16 18:58:49 -07:00
resource_provider_test.go plugin: Fix tests 2018-10-16 19:14:11 -07:00
resource_provisioner.go serve the new version 5 grpc plugins 2018-10-16 18:58:49 -07:00
resource_provisioner_test.go plugin: Fix tests 2018-10-16 19:14:11 -07:00
serve.go plugin: Establish our current plugin protocol as version 5 2018-11-19 09:56:41 -08:00
ui_input.go Use hashicorp/go-plugin for plugin system 2016-05-10 14:14:47 -04:00
ui_input_test.go Use hashicorp/go-plugin for plugin system 2016-05-10 14:14:47 -04:00
ui_output.go Use hashicorp/go-plugin for plugin system 2016-05-10 14:14:47 -04:00
ui_output_test.go Use hashicorp/go-plugin for plugin system 2016-05-10 14:14:47 -04:00