Documentation
¶
Index ¶
- func GetHashesForExistingFiles(rootPath turbopath.AbsoluteSystemPath, files []turbopath.AnchoredSystemPath) (map[turbopath.AnchoredUnixPath]string, error)
- func GetHashesForFiles(rootPath turbopath.AbsoluteSystemPath, files []turbopath.AnchoredSystemPath) (map[turbopath.AnchoredUnixPath]string, error)
- func GetPackageFileHashes(rootPath turbopath.AbsoluteSystemPath, ...) (map[turbopath.AnchoredUnixPath]string, error)
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 ¶
func GetHashesForFiles(rootPath turbopath.AbsoluteSystemPath, files []turbopath.AnchoredSystemPath) (map[turbopath.AnchoredUnixPath]string, error)
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.
Click to show internal directories.
Click to hide internal directories.