Versions in this module Expand all Collapse all v0 v0.0.1 Nov 29, 2026 Changes in this version + func CacheBaseDir() (string, error) + func CacheKey(apiVersion, path string) string + func CleanOldCaches(cliVersion string) (int, error) + type DiskCache struct + func NewDiskCache(cliVersion string) (*DiskCache, error) + func NewDiskCacheAt(dir string) (*DiskCache, error) + func (c *DiskCache) Clear() error + func (c *DiskCache) Dir() string + func (c *DiskCache) Get(key string) (*Entry, bool) + func (c *DiskCache) Put(key string, entry *Entry) error + type Entry struct + Body []byte + CachedAt time.Time + ETag string + LastModified string + TTL time.Duration + func (e *Entry) IsFresh() bool