Documentation
¶
Overview ¶
Package mergefs provides an in-memory filesystem that emulates Linux MergeFS functionality. It combines two filesystems (upper and lower) where the upper filesystem takes precedence.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MergeDir ¶
type MergeDir struct {
// contains filtered or unexported fields
}
MergeDir is used to merge the two directories from the upper and lower filesystem. It implements snapshot sematic.
type MergeFS ¶
type MergeFS struct {
// contains filtered or unexported fields
}
MergeFS implements fs.FS and fs.ReadDirFS by combining two filesystems. Files in the upper filesystem take precedence over files in the lower filesystem.
func New ¶
New creates a new MergeFS with the given upper and lower filesystems. upper takes precedence over lower when both contain the same file. Both must not be nil.
Click to show internal directories.
Click to hide internal directories.