Versions in this module Expand all Collapse all v1 v1.0.0 Nov 10, 2025 Changes in this version + const BucketCAS + const BucketCASRefs + type CASObject struct + CID string + Data []byte + Size int + type CASRefCount struct + CID string + Files []string + Refs int + type CASStats struct + TotalObjects int + TotalRefs int + TotalSize int64 + UniqueFiles int + UnreferencedObjs int + type CASStore struct + func NewCASStore(db *bbolt.DB, hashAlgo string) (*CASStore, error) + func (c *CASStore) AddReference(cid, filePath string) error + func (c *CASStore) Delete(cid string) error + func (c *CASStore) GarbageCollect() (int, error) + func (c *CASStore) Get(cid string) ([]byte, error) + func (c *CASStore) GetRefCount(cid string) (int, error) + func (c *CASStore) GetStats() (CASStats, error) + func (c *CASStore) Has(cid string) (bool, error) + func (c *CASStore) Put(data []byte) (string, error) + func (c *CASStore) RemoveReference(cid, filePath string) error