Documentation
¶
Index ¶
- func CopyFiles(sourcePath string, sourcePathFiles []string, targetPath string) ([]string, error)
- func GetCacheArchivePath(hash string, name string) string
- func GetCacheDirPath() string
- func GetFileHash(path string) (string, error)
- func GetFileHashes(files []string) ([]string, error)
- func GetFilePaths(inputPath string, excludes []string, includes []string) ([]string, error)
- func GetHashDigest(hash string) string
- func GetHashesDigest(hashes []string) (string, error)
- func GetRootDirPath() string
- func GetSandboxDirPath() string
- func GetSandboxPath() (*string, error)
- func GetStoreDirName(hash string, name string) string
- func HashFiles(paths []string) (string, error)
- func NewSandboxDir() (*string, error)
- func NewSandboxFile(extension string) (*os.File, error)
- func SetSymlinkTimestamps(path string) error
- func SetTimestamps(path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCacheArchivePath ¶
func GetCacheDirPath ¶
func GetCacheDirPath() string
func GetFileHash ¶
GetFileHash calculates the SHA-256 hash of a file
func GetFileHashes ¶
GetFileHashes calculates SHA-256 hashes for multiple files
func GetFilePaths ¶
func GetHashDigest ¶
GetHashDigest calculates the SHA-256 hash of a string
func GetHashesDigest ¶
GetHashesDigest combines multiple hashes and creates a digest
func GetRootDirPath ¶
func GetRootDirPath() string
func GetSandboxDirPath ¶
func GetSandboxDirPath() string
func GetSandboxPath ¶
func GetStoreDirName ¶
func NewSandboxDir ¶
func SetSymlinkTimestamps ¶
SetSymlinkTimestamps sets the access and modification times of a symlink
func SetTimestamps ¶
SetTimestamps sets the access and modification times of a file or symlink to epoch (0)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.