Documentation ¶
Index ¶
- Variables
- func FileMetaEqual(actual data.FileMeta, expected data.FileMeta) error
- func GenerateFileMeta(r io.Reader, hashAlgorithms ...string) (data.FileMeta, error)
- func HashedPaths(p string, hashes data.Hashes) []string
- func NormalizeTarget(p string) string
- type ErrNoCommonHash
- type ErrUnknownHashAlgorithm
- type ErrWrongHash
- type PassphraseFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongLength = errors.New("wrong length")
Functions ¶
func GenerateFileMeta ¶
func NormalizeTarget ¶
Types ¶
type ErrNoCommonHash ¶
func (ErrNoCommonHash) Error ¶
func (e ErrNoCommonHash) Error() string
type ErrUnknownHashAlgorithm ¶
type ErrUnknownHashAlgorithm struct {
Name string
}
func (ErrUnknownHashAlgorithm) Error ¶
func (e ErrUnknownHashAlgorithm) Error() string
type ErrWrongHash ¶
func (ErrWrongHash) Error ¶
func (e ErrWrongHash) Error() string
Click to show internal directories.
Click to hide internal directories.