Versions in this module Expand all Collapse all go1 go1.18.10 Jan 10, 2023 Changes in this version + const HashSize + var DebugTest = false + func DefaultDir() string + func FileHash(file string) ([HashSize]byte, error) + func SetFileHash(file string, sum [HashSize]byte) + type ActionID [HashSize]byte + func Subkey(parent ActionID, desc string) ActionID + type Cache struct + func Default() *Cache + func Open(dir string) (*Cache, error) + func (c *Cache) FuzzDir() string + func (c *Cache) Get(id ActionID) (Entry, error) + func (c *Cache) GetBytes(id ActionID) ([]byte, Entry, error) + func (c *Cache) GetFile(id ActionID) (file string, entry Entry, err error) + func (c *Cache) OutputFile(out OutputID) string + 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 + func (h *Hash) Sum() [HashSize]byte + func (h *Hash) Write(b []byte) (int, error) + type OutputID [HashSize]byte