Documentation
¶
Index ¶
- func GenerateKey(reference string) string
- type Cache
- func (c *Cache) Clean() (int, error)
- func (c *Cache) Close() error
- func (c *Cache) Get(ctx context.Context, reference string) (*CacheEntry, error)
- func (c *Cache) List() ([]*CacheEntry, error)
- func (c *Cache) Put(ctx context.Context, reference string, reader io.Reader) (*CacheEntry, error)
- func (c *Cache) Remove(key string) error
- func (c *Cache) Size() (int64, error)
- type CacheEntry
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
GenerateKey generates a cache key from an artifact reference
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache provides artifact caching functionality
func (*Cache) List ¶
func (c *Cache) List() ([]*CacheEntry, error)
List returns all cached artifacts
type CacheEntry ¶
type CacheEntry struct {
Key string `json:"key"`
Reference string `json:"reference"`
ContentPath string `json:"content_path"`
Size int64 `json:"size"`
CreatedAt time.Time `json:"created_at"`
AccessedAt time.Time `json:"accessed_at"`
AccessCount int `json:"access_count"`
}
CacheEntry represents a cached artifact
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store provides persistent storage for cache metadata
func (*Store) Get ¶
func (s *Store) Get(key string) (*CacheEntry, error)
Get retrieves a cache entry by key
func (*Store) Update ¶
func (s *Store) Update(entry *CacheEntry) error
Update updates an existing cache entry
Click to show internal directories.
Click to hide internal directories.