Versions in this module Expand all Collapse all v0 v0.0.1 Mar 17, 2024 Changes in this version + func ComputeFileHash(file *os.File) (string, error) + func ComputeFileHashAtPath(path string) (string, error) + func WithDevice(device uint32) func(*Key) + func WithDigest(digest string) func(*Key) + func WithInode(ino uint64, ctime int64) func(*Key) + type Cache struct + func NewCache(mode config.CalcHashesOption, resolver pathResolver) (*Cache, error) + func (c *Cache) Get(k *Key) (string, error) + type Key struct + func NewKey(filepath string, mountNS int, opts ...func(*Key)) Key + func (k *Key) DeviceKey() string + func (k *Key) DigestKey() string + func (k *Key) InodeKey() string + func (k *Key) MountNS() int + func (k *Key) Pathname() string