github.com/devseccon/trivy@v0.47.1-0.20231123133102-bd902a0bd996/pkg/cache/nop.go (about)

     1  package cache
     2  
     3  import "github.com/devseccon/trivy/pkg/fanal/cache"
     4  
     5  func NopCache(ac cache.ArtifactCache) cache.Cache {
     6  	return nopCache{ArtifactCache: ac}
     7  }
     8  
     9  type nopCache struct {
    10  	cache.ArtifactCache
    11  	cache.LocalArtifactCache
    12  }
    13  
    14  func (nopCache) Close() error {
    15  	return nil
    16  }