crash.software
Projects
Pull Requests
Issues
Builds
syft
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
syft
Files
🤬
Sign In
334a775c
ROOT
/
syft
/
source
/
directory_indexer.go
Search
History
366 lines
|
ISO-8859-1
|
9 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
pathIndexVisitor
directoryIndexer
path
:
string
base
:
string
pathIndexVisitors
:
[]pathIndexVisitor
errPaths
:
map[string]error
tree
:
filetree.ReadWriter
index
:
filetree.Index
addPathToIndex
(p string, info os.FileInfo)
:
(string, error)
addDirectoryToIndex
(p string, info os.FileInfo)
:
error
addFileToIndex
(p string, info os.FileInfo)
:
error
addSymlinkToIndex
(p string, info os.FileInfo)
:
(string, error)
hasBeenIndexed
(p string)
:
(bool, *file.Metadata)
newDirectoryIndexer
(path, base string, visitors ...pathIndexVisitor)
:
*directoryIndexer
indexAllRoots
(root string, indexer func(string, *progress.Stage) ([]string, error))
:
error
disallowUnixSystemRuntimePath
(path string, _ os.FileInfo, _ error)
:
error
disallowByFileType
(_ string, info os.FileInfo, _ error)
:
error
requireFileInfo
(_ string, info os.FileInfo, _ error)
:
error
indexingProgress
(path string)
:
(*progress.Stage, *progress.Manual)
*directoryIndexer
build
()
:
(filetree.Reader, filetree.IndexReader, error)
indexTree
(root string, stager *progress.Stage)
:
([]string, error)
indexPath
(path string, info os.FileInfo, err error)
:
(string, error)
disallowFileAccessErr
(path string, _ os.FileInfo, err error)
:
error
isFileAccessErr
(path string, err error)
:
bool
disallowRevisitingVisitor
(path string, _ os.FileInfo, _ error)
:
error
All occurrences
Please wait...
Page is in error, reload to recover