hashing

package
v0.0.0-...-0a43815 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHashesForExistingFiles

func GetHashesForExistingFiles(rootPath turbopath.AbsoluteSystemPath, files []turbopath.AnchoredSystemPath) (map[turbopath.AnchoredUnixPath]string, error)

GetHashesForExistingFiles hashes the list of given files, does not error if a file does not exist, then returns a map of normalized path to hash. This map is suitable for cross-platform caching.

func GetHashesForFiles

GetHashesForFiles hashes the list of given files, then returns a map of normalized path to hash. This map is suitable for cross-platform caching.

func GetPackageFileHashes

func GetPackageFileHashes(rootPath turbopath.AbsoluteSystemPath, packagePath turbopath.AnchoredSystemPath, inputs []string) (map[turbopath.AnchoredUnixPath]string, error)

GetPackageFileHashes Builds an object containing git hashes for the files under the specified `packagePath` folder.

Types

This section is empty.

Jump to

Keyboard shortcuts

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