Files
trivy/pkg/cache/nop.go
2022-03-21 15:51:18 +02:00

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
}