store

package
v0.0.0-...-06e616b Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFiles

func CopyFiles(sourcePath string, sourcePathFiles []string, targetPath string) ([]string, error)

func GetCacheArchivePath

func GetCacheArchivePath(hash string, name string) string

func GetCacheDirPath

func GetCacheDirPath() string

func GetFileHash

func GetFileHash(path string) (string, error)

GetFileHash calculates the SHA-256 hash of a file

func GetFileHashes

func GetFileHashes(files []string) ([]string, error)

GetFileHashes calculates SHA-256 hashes for multiple files

func GetFilePaths

func GetFilePaths(inputPath string, excludes []string, includes []string) ([]string, error)

func GetHashDigest

func GetHashDigest(hash string) string

GetHashDigest calculates the SHA-256 hash of a string

func GetHashesDigest

func GetHashesDigest(hashes []string) (string, error)

GetHashesDigest combines multiple hashes and creates a digest

func GetRootDirPath

func GetRootDirPath() string

func GetSandboxDirPath

func GetSandboxDirPath() string

func GetSandboxPath

func GetSandboxPath() (*string, error)

func GetStoreDirName

func GetStoreDirName(hash string, name string) string

func HashFiles

func HashFiles(paths []string) (string, error)

HashFiles calculates a combined hash for multiple files

func NewSandboxDir

func NewSandboxDir() (*string, error)

func NewSandboxFile

func NewSandboxFile(extension string) (*os.File, error)

func SetSymlinkTimestamps

func SetSymlinkTimestamps(path string) error

SetSymlinkTimestamps sets the access and modification times of a symlink

func SetTimestamps

func SetTimestamps(path string) error

SetTimestamps sets the access and modification times of a file or symlink to epoch (0)

Types

This section is empty.

Jump to

Keyboard shortcuts

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