Documentation
¶
Index ¶
- Constants
- type Cache
- func (c *Cache) Clean() error
- func (c *Cache) Dir() string
- func (c *Cache) GetList() (*list.Result, error)
- func (c *Cache) GetScan() (*scan.Results, error)
- func (c *Cache) Size() (int64, error)
- func (c *Cache) Status(checksum string) (status Status, err error)
- func (c *Cache) StoreList(result *list.Result) error
- func (c *Cache) StoreScan(results *scan.Results) error
- type Status
Constants ¶
View Source
const (
ProjectCacheDir = "evansky"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache represents a cache entry. Cache entries are store in user cache directory (see os.UserCacheDir) under ProjectCacheDir. Each cache entry is a folder where the name is the hash of the path. e.g. hash(test) = 098f6bcd4621d373cade4e832627b4f6
./test -> /path/to/cache/098f6bcd4621d373cade4e832627b4f6
func NewMultiple ¶
NewMultiple return a slice of all available cache entries found.
func (*Cache) Status ¶
Status check cache status. e.g. filename=1234/5678
DoNotExist: /cache/path/1234/fileschecksum missing Changed: /cache/path/1234/fileschecksum content != checksum UpToDate: /cache/path/1234/fileschecksum content == checksum
Click to show internal directories.
Click to hide internal directories.