Documentation
¶
Index ¶
Constants ¶
View Source
const EmptyHash = "0000000000000000000000000000000000000000000000000000000000000000" // Empty hash means marked for deletion
Variables ¶
This section is empty.
Functions ¶
func Defragment ¶
func Defragment(basePath string)
During execution new hashes are only appended in the integrity file due to performance reasons. This may leads to duplicate entries which are eliminated in a final step.
func NewFileHashsBuffer ¶
Types ¶
type FileHash ¶
type FileHashMap ¶
func (FileHashMap) Has ¶
func (fhm FileHashMap) Has(relativePath string) bool
func (*FileHashMap) Remove ¶
func (fhm *FileHashMap) Remove(relativePath string)
type FileHashs ¶
type FileHashs []FileHash
func LoadContent ¶
func (FileHashs) DefragmentedMap ¶
func (fs FileHashs) DefragmentedMap() FileHashMap
Implicitly removes duplicated and deleted entries
func (FileHashs) TotalBytes ¶
Click to show internal directories.
Click to hide internal directories.