mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-21 06:43:05 -08:00
20 lines
508 B
Go
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 }
|