Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterDeltas ¶
func FilterDeltas(deltas []mtree.InodeDelta, filter FilterFunc) []mtree.InodeDelta
FilterDeltas is a helper function to easily filter []mtree.InodeDelta with a filter function. Only entries which have `filter(delta.Path()) == true` will be included in the returned slice.
Types ¶
type FilterFunc ¶
FilterFunc is a function used when filtering deltas with FilterDeltas.
func MaskFilter ¶
func MaskFilter(masks []string) FilterFunc
MaskFilter is a factory for FilterFuncs that will mask all InodeDelta paths that are lexical children of any path in the mask slice. All paths are considered to be relative to '/'.
Click to show internal directories.
Click to hide internal directories.