fsutils

package
v0.50.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 5

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 added in v0.45.0

func RequiredExt(exts ...string) WalkDirRequiredFunc

func RequiredFile added in v0.45.0

func RequiredFile(fileNames ...string) WalkDirRequiredFunc

Jump to

Keyboard shortcuts

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