Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrLocked = errors.New("resource file held by another process")
ErrLocked reports a file still held exclusively by another process after the read retries. The scan is incomplete rather than failed: a caller must retry it instead of reconciling the partial result, which would unload the resources the file holds.
Functions ¶
This section is empty.
Types ¶
type DirData ¶
type DirData struct {
Entries []DirEntry
}
DirData holds pre-read YAML file contents from a set of directories. This allows multiple resource loaders to parse from the same file data without each independently opening and reading files from disk, which avoids file handle contention on Windows.
type DirDataLoader ¶
DirDataLoader can load resources from pre-read directory data, avoiding repeated file system reads when multiple resource types need to be loaded from the same directories.