Documentation
¶
Index ¶
Constants ¶
View Source
const (
// CheckSumFileName is the checksum file name (base with no directories)
CheckSumFileName = "checksum.txt"
)
Variables ¶
View Source
var ( // CheckSumFilePath is the Checksum file name CheckSumFilePath = CheckSumFileName // CheckSums is the hash that stores checksums keyed on relative path CheckSums = make(map[string]string) )
Functions ¶
func CalcChecksum ¶
CalcChecksum works out the checksum string
func GetCachedChecksum ¶
GetCachedChecksum will return previously calculated checksum
func IsCachedMatch ¶
IsCachedMatch will verify if a file is in Cache AND matching expected sha256
func UpdateCache ¶
UpdateCache will write a new cache entry into checksum file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.