Documentation ¶
Index ¶
- func FileRaw(filePath string, v hashas.Variant) *errbyte.Results
- func Md5(filePath string) *errbyte.Results
- func Sha1(filePath string) *errbyte.Results
- func Sha256(filePath string) *errbyte.Results
- func Sha512(filePath string) *errbyte.Results
- type Instance
- func Invalid(isRecursive bool, root string, hashType hashas.Variant, err error) *Instance
- func New(isAsync, isRecursive bool, root string, hashType hashas.Variant) *Instance
- func NewAsync(isRecursive bool, root string, hashType hashas.Variant) *Instance
- func NewSync(isRecursive bool, root string, hashType hashas.Variant) *Instance
- func (it *Instance) ContainsMap(other map[string][]byte) bool
- func (it *Instance) GetMap() map[string][]byte
- func (it *Instance) HasError() bool
- func (it *Instance) HasHash(filePath string) bool
- func (it *Instance) HasHashBytes(hashBytes []byte) bool
- func (it *Instance) HasHashPath(filePath string) bool
- func (it *Instance) HasHashString(hexHashString string) bool
- func (it *Instance) HashesHashset() *corestr.Hashset
- func (it *Instance) IsDir() bool
- func (it *Instance) IsEmpty() bool
- func (it *Instance) IsEqual(isTrimRoot bool, other *Instance) bool
- func (it *Instance) IsFile() bool
- func (it *Instance) IsHashMatch(filePath string, fileHash []byte) bool
- func (it *Instance) IsHashMatchString(filePath, fileHash string) bool
- func (it *Instance) Length() int
- func (it *Instance) RawSingleHash() []byte
- func (it *Instance) SingleHash() string
- func (it *Instance) StringHashes() *corestr.SimpleSlice
- func (it *Instance) StringHashesMap() map[string]string
- func (it *Instance) StrippedPathMap() map[string]string
- func (it *Instance) VerifyError(isContinueOnErr bool, isTrimRoot bool, other *Instance) *errwrappers.Collection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Instance ¶
type Instance struct { ErrorWrapper *errorwrapper.Wrapper // contains filtered or unexported fields }
func (*Instance) HasHashBytes ¶
HasHashBytes Converts hashBytes to hexHashString then use it. HasHashString
func (*Instance) HasHashPath ¶
func (*Instance) HasHashString ¶
func (*Instance) HashesHashset ¶
HashesHashset Key => HashString (Hex), Value => true
func (*Instance) IsHashMatch ¶
func (*Instance) IsHashMatchString ¶
func (*Instance) RawSingleHash ¶
RawSingleHash Single Bytes hash for all the hashes combined.
Runs lazy
func (*Instance) SingleHash ¶
func (*Instance) StringHashes ¶
func (it *Instance) StringHashes() *corestr.SimpleSlice
StringHashes all the hashes string slice
func (*Instance) StringHashesMap ¶
StringHashesMap Key => Path, Value => HashString (Hex)
func (*Instance) StrippedPathMap ¶
StrippedPathMap Key => Root Stripped Path, Value => Actual Path
func (*Instance) VerifyError ¶
func (it *Instance) VerifyError( isContinueOnErr bool, isTrimRoot bool, other *Instance, ) *errwrappers.Collection
Click to show internal directories.
Click to hide internal directories.