/
githubmirror
/
trivy
Обзор
Документация
Войти
/
githubmirror
/
trivy
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
pkg/cache/nop.go
19 строк
508 B
Owen Rumney
chore: add context to the cache interface (#9565)
03 окт 2025, 12:37
Не верифицирован
03 окт 2025, 12:37
719ea29
Код
Авторство
О чём код?
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 }