Resolver
A Resolver is used to analyze and modify the post-coalesced index report. This is useful for operations that need all context from an index report.
package indexer // import "github.com/quay/claircore/indexer"
type Resolver interface {
Resolve(context.Context, *claircore.IndexReport, []*claircore.Layer) *claircore.IndexReport
}
Resolver is used for any reasoning that needs to be done with all the layers
in context.
Resolvers are called at the end of the coalesce step when reports from
separate scanners are merged.
Any Resolvers' Resolve()
methods are called (in no set order) at the end of the coalesce step after reports from separate scanners are merged.