Documentation
¶
Index ¶
- type Cache
- func (c *Cache) Cleanup() error
- func (c *Cache) Close() error
- func (c *Cache) GetCVEData(pkg, version, ecosystem string) (string, error)
- func (c *Cache) GetMetadata(pkg, version, ecosystem string) (string, error)
- func (c *Cache) GetScanResult(pkg, version, ecosystem string) (*CachedScanResult, error)
- func (c *Cache) GetStats() (*CacheStats, error)
- func (c *Cache) SetCVEData(pkg, version, ecosystem, cveData string) error
- func (c *Cache) SetMetadata(pkg, version, ecosystem, metadata string) error
- func (c *Cache) SetScanResult(pkg, version, ecosystem string, findingsJSON string, clean bool) error
- type CacheStats
- type CachedScanResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache handles local caching of scan results and CVE data
func (*Cache) GetCVEData ¶
GetCVEData retrieves cached CVE data
func (*Cache) GetMetadata ¶
GetMetadata retrieves cached metadata
func (*Cache) GetScanResult ¶
func (c *Cache) GetScanResult(pkg, version, ecosystem string) (*CachedScanResult, error)
GetScanResult retrieves a cached scan result
func (*Cache) GetStats ¶
func (c *Cache) GetStats() (*CacheStats, error)
GetStats returns cache statistics
func (*Cache) SetCVEData ¶
SetCVEData stores CVE data in cache
func (*Cache) SetMetadata ¶
SetMetadata stores metadata in cache
type CacheStats ¶
CacheStats represents cache statistics
Click to show internal directories.
Click to hide internal directories.