Documentation ¶ Index ¶ func CacheDir() string func CopyFile(src, dst string) (int64, error) func DirExists(path string) bool func HomeDir() string func SetCacheDir(dir string) func WalkDir(fsys fs.FS, root string, required WalkDirRequiredFunc, fn WalkDirFunc) error type WalkDirFunc type WalkDirRequiredFunc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CacheDir ¶ func CacheDir() string CacheDir returns the directory used for caching func CopyFile ¶ func CopyFile(src, dst string) (int64, error) CopyFile copies the file content from scr to dst func DirExists ¶ func DirExists(path string) bool func HomeDir ¶ func HomeDir() string func SetCacheDir ¶ func SetCacheDir(dir string) SetCacheDir sets the trivy cacheDir func WalkDir ¶ func WalkDir(fsys fs.FS, root string, required WalkDirRequiredFunc, fn WalkDirFunc) error Types ¶ type WalkDirFunc ¶ type WalkDirFunc func(path string, d fs.DirEntry, r dio.ReadSeekerAt) error type WalkDirRequiredFunc ¶ type WalkDirRequiredFunc func(path string, d fs.DirEntry) bool Source Files ¶ View all Source files fs.go Click to show internal directories. Click to hide internal directories.