Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIntegrity ¶
func IsIntegrityError ¶
IsIntegrityError returns true if the error is a size or a hash mismatch. Simple reference equality cannot be used because the error might be wrapped (for stack traces)
Types ¶
type BadHashErr ¶
BadHashErr is returned when the hash of a file on disk doesn't match what we expected it to be
func (*BadHashErr) Error ¶
func (bhe *BadHashErr) Error() string
type BadSizeErr ¶
BadSizeErr is returned when the size of a file on disk doesn't match what we expected it to be
func (*BadSizeErr) Error ¶
func (bse *BadSizeErr) Error() string
Click to show internal directories.
Click to hide internal directories.