|
|
|
|
@ -9,6 +9,7 @@ type Resource struct {
|
|
|
|
|
Destroy DestroyFunc
|
|
|
|
|
Diff DiffFunc
|
|
|
|
|
Refresh RefreshFunc
|
|
|
|
|
Update UpdateFunc
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CreateFunc is a function that creates a resource that didn't previously
|
|
|
|
|
@ -35,3 +36,12 @@ type DiffFunc func(
|
|
|
|
|
type RefreshFunc func(
|
|
|
|
|
*terraform.ResourceState,
|
|
|
|
|
interface{}) (*terraform.ResourceState, error)
|
|
|
|
|
|
|
|
|
|
// UpdateFunc is a function that is called to update a resource that
|
|
|
|
|
// previously existed. The difference between this and CreateFunc is that
|
|
|
|
|
// the diff is guaranteed to only contain attributes that don't require
|
|
|
|
|
// a new resource.
|
|
|
|
|
type UpdateFunc func(
|
|
|
|
|
*terraform.ResourceState,
|
|
|
|
|
*terraform.ResourceDiff,
|
|
|
|
|
interface{}) (*terraform.ResourceState, error)
|
|
|
|
|
|