4 "github.com/hashicorp/terraform/helper/config"
5 "github.com/hashicorp/terraform/terraform"
9 ConfigValidator *config.Validator
17 // CreateFunc is a function that creates a resource that didn't previously
20 *terraform.InstanceState,
21 *terraform.InstanceDiff,
22 interface{}) (*terraform.InstanceState, error)
24 // DestroyFunc is a function that destroys a resource that previously
25 // exists using the state.
26 type DestroyFunc func(
27 *terraform.InstanceState,
30 // DiffFunc is a function that performs a diff of a resource.
32 *terraform.InstanceState,
33 *terraform.ResourceConfig,
34 interface{}) (*terraform.InstanceDiff, error)
36 // RefreshFunc is a function that performs a refresh of a specific type
38 type RefreshFunc func(
39 *terraform.InstanceState,
40 interface{}) (*terraform.InstanceState, error)
42 // UpdateFunc is a function that is called to update a resource that
43 // previously existed. The difference between this and CreateFunc is that
44 // the diff is guaranteed to only contain attributes that don't require
47 *terraform.InstanceState,
48 *terraform.InstanceDiff,
49 interface{}) (*terraform.InstanceState, error)