Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheBaseDir ¶ added in v1.10.0
CacheBaseDir returns the parent directory of all versioned cache dirs (~/.vulnetix/cache/vdb).
func CleanOldCaches ¶ added in v1.10.0
CleanOldCaches removes cache directories for CLI versions other than cliVersion. Also removes bare .json files left from the pre-versioned cache layout. Returns the number of entries removed. Errors are best-effort.
Types ¶
type DiskCache ¶
type DiskCache struct {
// contains filtered or unexported fields
}
DiskCache stores HTTP responses on disk.
func NewDiskCache ¶
NewDiskCache creates a new disk cache rooted at ~/.vulnetix/cache/vdb/vX.Y.
Click to show internal directories.
Click to hide internal directories.