Documentation
¶
Overview ¶
Package local provides local Go build cache.
Index ¶
- func DiskInfo(dir string) (total, free int64, err error)
- type Cache
- func (c *Cache) Close() error
- func (c *Cache) FuzzDir() string
- func (c *Cache) Get(id cache.ActionID) (cache.Entry, error)
- func (c *Cache) OutputFile(id cache.OutputID) string
- func (c *Cache) Put(id cache.ActionID, rs io.ReadSeeker) (cache.OutputID, int64, error)
- func (c *Cache) TrimForce() (before, freed int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache represents a local Go build cache, compatible with a built-in one. It provides more configuration options for trimming.
func (*Cache) Get ¶
Get implements cache.Cache.
func (*Cache) OutputFile ¶
OutputFile implements cache.Cache.
func (*Cache) Put ¶
Put implements cache.Cache.
Click to show internal directories.
Click to hide internal directories.