fsutils

package
v3.9.1-2868 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 io.Reader) error

type WalkDirRequiredFunc

type WalkDirRequiredFunc func(path string, d fs.DirEntry) bool

func RequiredExt

func RequiredExt(exts ...string) WalkDirRequiredFunc

func RequiredFile

func RequiredFile(fileNames ...string) WalkDirRequiredFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL