Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrIntegrityError = errors.New("integrity error")
)
View Source
var (
ErrInvalidInput = errors.New("invalid input")
)
Functions ¶
Types ¶
type DirInfoGenerator ¶
type InMemoryTreeBuilder ¶
type InMemoryTreeBuilder struct {
// contains filtered or unexported fields
}
InMemoryTreeBuilder maintains a tree in memory
func NewInMemoryTreeBuilder ¶
func NewInMemoryTreeBuilder(directoryFn DirInfoGenerator) *InMemoryTreeBuilder
func (*InMemoryTreeBuilder) Readdir ¶
func (t *InMemoryTreeBuilder) Readdir(entryPath string) (fs.FileInfoList, error)
type Tree ¶
type Tree interface { // Index accepts a sorted list of paths. // it creates a mapping of directory memberships and makes up for missing directory entries, if any. // (some indices have no directory entries at all, so those need to be created) Index(infos []*fs.FileInfo) error // Readdir returns the direct descendants of the given directory at entryPath Readdir(entryPath string) (fs.FileInfoList, error) // Stat returns in the FileInfo for the given file/directory at entryPath Stat(entryPath string) (*fs.FileInfo, error) }
Click to show internal directories.
Click to hide internal directories.