Versions in this module Expand all Collapse all v1 v1.0.1 Jul 30, 2023 v1.0.0 Jul 30, 2023 Changes in this version + const HashSize + var DebugTest = false + func DefaultDir() string + func FileHash(file string) ([HashSize]byte, error) + func IsErrMissing(err error) bool + func SetFileHash(file string, sum [HashSize]byte) + func SetSalt(b []byte) + type ActionID [HashSize]byte + func Subkey(parent ActionID, desc string) (ActionID, error) + type Cache struct + func Default() (*Cache, error) + func Open(dir string) (*Cache, error) + func (c *Cache) Get(id ActionID) (Entry, error) + func (c *Cache) GetBytes(id ActionID) ([]byte, Entry, error) + func (c *Cache) OutputFile(out OutputID) (string, error) + func (c *Cache) Put(id ActionID, file io.ReadSeeker) (OutputID, int64, error) + func (c *Cache) PutBytes(id ActionID, data []byte) error + func (c *Cache) PutNoVerify(id ActionID, file io.ReadSeeker) (OutputID, int64, error) + func (c *Cache) Trim() + type Entry struct + OutputID OutputID + Size int64 + Time time.Time + type Hash struct + func NewHash(name string) (*Hash, error) + func (h *Hash) Sum() [HashSize]byte + func (h *Hash) Write(b []byte) (int, error) + type OutputID [HashSize]byte