Files
trivy/pkg/cache/nop.go
2025-10-03 09:37:05 +00:00

20 lines
508 B
Go

package cache
import (
"context"
"github.com/aquasecurity/trivy/pkg/fanal/types"
)
type NopCache struct{}
func NewNopCache() NopCache { return NopCache{} }
func (NopCache) GetArtifact(context.Context, string) (types.ArtifactInfo, error) {
return types.ArtifactInfo{}, nil
}
func (NopCache) GetBlob(context.Context, string) (types.BlobInfo, error) {
return types.BlobInfo{}, nil
}
func (NopCache) Close() error { return nil }
func (NopCache) Clear(context.Context) error { return nil }