Documentation ¶
Index ¶
- func CacheDir() string
- func CopyFile(src, dst string) (int64, error)
- func DefaultCacheDir() string
- func FileWalk(root string, targetFiles map[string]struct{}, ...) error
- func FilterTargets(prefixPath string, targets map[string]struct{}) (map[string]struct{}, error)
- func SetCacheDir(dir string)
- func StringInSlice(a string, list []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCacheDir ¶
func DefaultCacheDir() string
DefaultCacheDir returns/creates the cache-dir to be used for trivu operations
func FileWalk ¶
func FileWalk(root string, targetFiles map[string]struct{}, walkFn func(r io.Reader, path string) error) error
FileWalk walks the directory and performs operations on files defined by walkFn
func FilterTargets ¶
FilterTargets filters the target based on prefixPath
func StringInSlice ¶
StringInSlice checks if strings exist in list of strings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.