Documentation
¶
Index ¶
- type CSVCache
- type Cache
- type CacheType
- type SQLiteCache
- func (c *SQLiteCache) Clear() error
- func (c *SQLiteCache) ClearScanResults(scanType string) error
- func (c *SQLiteCache) Close() error
- func (c *SQLiteCache) Load() ([]sysdig.Vulnerability, error)
- func (c *SQLiteCache) LoadScanResults(scanType string, days int) ([]ScanResultWithDetails, error)
- func (c *SQLiteCache) Save(vulnerabilities []sysdig.Vulnerability) error
- func (c *SQLiteCache) SaveScanResults(scanType string, results []sysdig.ScanResult, ...) error
- type ScanResultCache
- type ScanResultWithDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVCache ¶
type CSVCache struct {
// contains filtered or unexported fields
}
CSVCache is deprecated - SQLite only
type Cache ¶
type Cache interface {
Save(vulnerabilities []sysdig.Vulnerability) error
Load() ([]sysdig.Vulnerability, error)
Clear() error
Close() error
}
Cache interface for vulnerability caching
type SQLiteCache ¶
type SQLiteCache struct {
// contains filtered or unexported fields
}
SQLiteCache implements Cache interface using SQLite
func NewSQLiteCache ¶
func NewSQLiteCache(filepath string) (*SQLiteCache, error)
NewSQLiteCache creates a new SQLite cache
func (*SQLiteCache) ClearScanResults ¶
func (c *SQLiteCache) ClearScanResults(scanType string) error
ClearScanResults implements ScanResultCache interface for SQLiteCache
func (*SQLiteCache) Close ¶
func (c *SQLiteCache) Close() error
Close closes the database connection
func (*SQLiteCache) Load ¶
func (c *SQLiteCache) Load() ([]sysdig.Vulnerability, error)
Load loads vulnerabilities from SQLite database
func (*SQLiteCache) LoadScanResults ¶
func (c *SQLiteCache) LoadScanResults(scanType string, days int) ([]ScanResultWithDetails, error)
LoadScanResults implements ScanResultCache interface for SQLiteCache
func (*SQLiteCache) Save ¶
func (c *SQLiteCache) Save(vulnerabilities []sysdig.Vulnerability) error
Save saves vulnerabilities to SQLite database
func (*SQLiteCache) SaveScanResults ¶
func (c *SQLiteCache) SaveScanResults(scanType string, results []sysdig.ScanResult, vulnerabilities map[string][]sysdig.Vulnerability) error
SaveScanResults implements ScanResultCache interface for SQLiteCache - V2 API only
type ScanResultCache ¶
type ScanResultCache interface {
SaveScanResults(scanType string, results []sysdig.ScanResult, vulnerabilities map[string][]sysdig.Vulnerability) error
LoadScanResults(scanType string, days int) ([]ScanResultWithDetails, error)
ClearScanResults(scanType string) error
Close() error
}
ScanResultCache interface for scan result caching with detailed vulnerability info
func NewScanResultCache ¶
func NewScanResultCache(filepath string) (ScanResultCache, error)
NewScanResultCache creates a new SQLite-based scan result cache
type ScanResultWithDetails ¶
type ScanResultWithDetails struct {
ScanResult sysdig.ScanResult
Vulnerabilities []sysdig.Vulnerability
}
ScanResultWithDetails combines scan result with its detailed vulnerability info