Versions in this module Expand all Collapse all v0 v0.28.4 Aug 3, 2026 v0.28.3 Jul 31, 2026 Changes in this version + var CacheName = map[CacheType]string + type Cache interface + Get func(key string, p tui.ProgressReader, callback func(reader io.ReadCloser) error) error + GetName func() string + Has func(key string) bool + Put func(key string, p tui.ProgressReader, reader io.ReadCloser) error + type CacheStruct struct + Type CacheType + func (c *CacheStruct) GetName() string + type CacheType int + const CacheContainerd + const CacheDocker + const CacheFile + const CacheMemory + const CacheNone + type ContainerdCache struct + func NewContainerdCache(namespace string) (*ContainerdCache, error) + func (c *ContainerdCache) Get(key string, p tui.ProgressReader, callback func(reader io.ReadCloser) error) error + func (c *ContainerdCache) Has(key string) bool + func (c *ContainerdCache) Put(key string, p tui.ProgressReader, reader io.ReadCloser) error + type DockerCache struct + func NewDockerCache() (*DockerCache, error) + func (c *DockerCache) Get(key string, p tui.ProgressReader, callback func(reader io.ReadCloser) error) error + func (c *DockerCache) Has(key string) bool + func (c *DockerCache) Put(key string, p tui.ProgressReader, reader io.ReadCloser) error + type FileCache struct + func NewFileCache(directory string, retentionSeconds int) (*FileCache, error) + func (c *FileCache) Get(key string, p tui.ProgressReader, callback func(reader io.ReadCloser) error) error + func (c *FileCache) Has(key string) bool + func (c *FileCache) Put(key string, p tui.ProgressReader, reader io.ReadCloser) error + type MemoryCache struct + func NewMemoryCache() *MemoryCache + func (c *MemoryCache) Get(key string, p tui.ProgressReader, callback func(reader io.ReadCloser) error) error + func (c *MemoryCache) Has(key string) bool + func (c *MemoryCache) Put(key string, p tui.ProgressReader, reader io.ReadCloser) error + type NoneCache struct + func NewNoneCache() *NoneCache + func (c *NoneCache) Get(key string, p tui.ProgressReader, callback func(reader io.ReadCloser) error) error + func (c *NoneCache) Has(key string) bool + func (c *NoneCache) Put(key string, p tui.ProgressReader, reader io.ReadCloser) error