mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
17 lines
271 B
Go
17 lines
271 B
Go
package cache
|
|
|
|
import "github.com/aquasecurity/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
|
|
}
|