mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 07:10:41 -08:00
17 lines
281 B
Go
17 lines
281 B
Go
package cache
|
|
|
|
import "github.com/aquasecurity/trivy/pkg/fanal/cache"
|
|
|
|
func NopCache(ac cache.ArtifactCache) cache.Cache {
|
|
return nopCache{ArtifactCache: ac}
|
|
}
|
|
|
|
type nopCache struct {
|
|
cache.ArtifactCache
|
|
cache.LocalArtifactCache
|
|
}
|
|
|
|
func (nopCache) Close() error {
|
|
return nil
|
|
}
|