Documentation
¶
Overview ¶
Package cache is a bounded TTL cache for verification outcomes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
AddImage(trustPolicy string, imageRef string, result types.Image) error
GetImage(trustPolicy string, imageRef string) (*types.Image, bool)
AddAttestation(trustPolicy string, imageRef string, attestationType string, conditions []kyvernov1.AnyAllConditions) error
GetAttestation(trustPolicy string, imageRef string, attestationType string, conditions []kyvernov1.AnyAllConditions) bool
Clear()
// Close stops the background goroutines of the cache.
Close()
}
type Option ¶
type Option = func(*cache) error
func WithCacheEnabled ¶
func WithLogger ¶
func WithLogger(l *zap.SugaredLogger) Option
func WithMaxSize ¶
func WithTTLDuration ¶
Click to show internal directories.
Click to hide internal directories.