Previously, fanal was a separate library, and the cache implementations for the filesystem and Redis were located within the fanal package, while the cache for server mode was implemented in the Trivy package. Now that fanal has been integrated into Trivy, there is no need to keep the cache implementations separate. As a result, we have consolidated the cache-related functionality under the pkg/cache directory.
Additionally, the S3 cache is currently not being used, causing confusion, so this PR removes it.
This refactoring aims to simplify the codebase by:
Unifying the cache implementations in a single package
Eliminating the unused and confusing S3 cache
Improving the overall structure and organization of the cache-related code
Description
Previously, fanal was a separate library, and the cache implementations for the filesystem and Redis were located within the fanal package, while the cache for server mode was implemented in the Trivy package. Now that fanal has been integrated into Trivy, there is no need to keep the cache implementations separate. As a result, we have consolidated the cache-related functionality under the
pkg/cache
directory.Additionally, the S3 cache is currently not being used, causing confusion, so this PR removes it.
This refactoring aims to simplify the codebase by:
Checklist