github.com/quay/claircore@v1.5.28/datastore/matcher_store.go (about) 1 package datastore 2 3 // Iter is an iterator function that accepts a callback 'yield' to handle each 4 // iterator item. The consumer can signal the iterator to break or retry by 5 // returning an error. The iterator itself returns an error if the iteration 6 // cannot continue or was interrupted unexpectedly. 7 type Iter[T any] func(yield func(T, error) bool) 8 9 // MatcherStore aggregates all interface types 10 type MatcherStore interface { 11 Updater 12 Vulnerability 13 Enrichment 14 }