dirhash

package
v0.10.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashLatest

func HashLatest(dir string) (string, error)

HashLatest computes a dirhash of the given directory using the latest/best hash algorithm.

func Verify

func Verify(wantHash, dir string) (bool, error)

Verify returns whether the dirhash of the given directory matches the given hash value. It detects which hash algorithm to use based on a prefix of wantHash, e.g. "h1:0a1b2d3c..." .

Types

This section is empty.

Jump to

Keyboard shortcuts

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