terraform/helper/schema
Paul Hinze 66dbf91ffd helper/schema: ensure ForceNew set when Update is not
If a given resource does not define an `Update` function, then all of
its attributes must be specified as `ForceNew`, lest Applys fail with
"doesn't support update" like #1367.

This is something we can detect automatically, so this adds a check for
it when we validate provider implementations.
2015-04-03 09:57:30 -05:00
..
README.md helper/schema: README 2014-08-17 20:51:09 -07:00
equal.go helper/schema: use interface for equality check 2015-01-16 09:32:15 -08:00
field_reader.go helper/schema: zero value set should set function [GH-1009] 2015-02-19 11:26:02 -08:00
field_reader_config.go helper/schema: apply schema defaults at the field level when reading from config 2015-01-27 18:18:57 -06:00
field_reader_config_test.go config: substring containing computed value replaces element 2015-02-27 21:51:14 -08:00
field_reader_diff.go helper/schema: diff with set going to 0 elements removes it from state 2015-02-17 11:38:56 -08:00
field_reader_diff_test.go helper/schema: diff with set going to 0 elements removes it from state 2015-02-17 11:38:56 -08:00
field_reader_map.go Add some missing Float cases 2015-01-28 12:53:34 -05:00
field_reader_map_test.go helper/schema: map counts in state 2015-01-15 14:12:24 -08:00
field_reader_multi.go helper/schema: full object test for addrToSchema 2015-01-09 17:43:44 -08:00
field_reader_multi_test.go helper/schema: too big to fail 2015-01-08 18:02:19 -08:00
field_reader_test.go helper/schema: add float type 2015-01-10 16:04:01 -08:00
field_writer.go helper/schema: FieldWriter, replace Set 2015-01-10 11:44:26 -08:00
field_writer_map.go Fix failing tests 2015-01-28 16:20:14 -05:00
field_writer_map_test.go helper/schema: test that set can be nil 2015-02-18 14:59:55 -08:00
getsource_string.go helper/schema: diff with set going to 0 elements removes it from state 2015-02-17 11:38:56 -08:00
provider.go helper/schema: Input support 2014-09-29 10:25:43 -07:00
provider_test.go Fix go vet complaints 2014-08-24 21:50:35 -07:00
resource.go helper/schema: ensure ForceNew set when Update is not 2015-04-03 09:57:30 -05:00
resource_data.go helper/schema: test real nil pointer to ResourceData.Set 2015-03-02 23:37:43 -08:00
resource_data_get_source.go helper/schema: diff with set going to 0 elements removes it from state 2015-02-17 11:38:56 -08:00
resource_data_test.go helper/schema: test real nil pointer to ResourceData.Set 2015-03-02 23:37:43 -08:00
resource_test.go helper/schema: record schema version on apply 2015-03-18 19:08:48 -05:00
schema.go helper/schema: allow Schema attrs to be Removed 2015-03-05 15:33:56 -06:00
schema_test.go helper/schema: allow Schema attrs to be Removed 2015-03-05 15:33:56 -06:00
set.go helper/schema: use interface for equality check 2015-01-16 09:32:15 -08:00
set_test.go Sets should init only once... 2015-01-15 15:33:52 +01:00
valuetype.go helper/schema: zero value of a set should be empty 2015-02-17 16:58:47 -08:00
valuetype_string.go regenerate with new stringer. 2015-02-04 01:54:14 +09:00

README.md

Terraform Helper Lib: schema

The schema package provides a high-level interface for writing resource providers for Terraform.

If you're writing a resource provider, we recommend you use this package.

The interface exposed by this package is much friendlier than trying to write to the Terraform API directly. The core Terraform API is low-level and built for maximum flexibility and control, whereas this library is built as a framework around that to more easily write common providers.