fsutils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 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 dio.ReadSeekerAt) error

type WalkDirRequiredFunc

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

Jump to

Keyboard shortcuts

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