mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-14 12:48:44 +00:00
e22043cb86
In certain circumstances (such as the manifest generation of a filesystem as an unprivileged user) it is important to provide hooks that override the default os.* implementation of filesystem-related functions. In order to avoid merging too much code from outside projects (such as umoci) this is implemented by providing FsEval hooks to Walk() and Check(). This allows for users of go-mtree to modify how filesystem checks are done, without compromising the simplicity of go-mtree's code. Signed-off-by: Aleksa Sarai <asarai@suse.de>
10 lines
188 B
Go
10 lines
188 B
Go
package mtree
|
|
|
|
// dhCreator is used in when building a DirectoryHierarchy
|
|
type dhCreator struct {
|
|
DH *DirectoryHierarchy
|
|
fs FsEval
|
|
curSet *Entry
|
|
curDir *Entry
|
|
curEnt *Entry
|
|
}
|