2015-02-17 20:38:56 +01:00
|
|
|
package schema
|
|
|
|
|
2019-10-17 22:17:23 +02:00
|
|
|
//go:generate go run golang.org/x/tools/cmd/stringer -type=getSource resource_data_get_source.go
|
2015-02-17 20:38:56 +01:00
|
|
|
|
|
|
|
// getSource represents the level we want to get for a value (internally).
|
|
|
|
// Any source less than or equal to the level will be loaded (whichever
|
|
|
|
// has a value first).
|
|
|
|
type getSource byte
|
|
|
|
|
|
|
|
const (
|
|
|
|
getSourceState getSource = 1 << iota
|
|
|
|
getSourceConfig
|
|
|
|
getSourceDiff
|
|
|
|
getSourceSet
|
|
|
|
getSourceExact // Only get from the _exact_ level
|
|
|
|
getSourceLevelMask getSource = getSourceState | getSourceConfig | getSourceDiff | getSourceSet
|
|
|
|
)
|