2014-12-19 11:56:46 +01:00
|
|
|
package schema
|
|
|
|
|
|
|
|
// FieldReaders are responsible for decoding fields out of data into
|
|
|
|
// the proper typed representation. ResourceData uses this to query data
|
|
|
|
// out of multiple sources: config, state, diffs, etc.
|
|
|
|
type FieldReader interface {
|
2014-12-19 12:15:04 +01:00
|
|
|
ReadField([]string, *Schema) (interface{}, bool, bool, error)
|
2014-12-19 11:56:46 +01:00
|
|
|
}
|