Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coalescer ¶
type Coalescer struct {
// contains filtered or unexported fields
}
func (*Coalescer) Coalesce ¶
func (c *Coalescer) Coalesce(ctx context.Context, layerArtifacts []*indexer.LayerArtifacts) (*claircore.IndexReport, error)
Coalesce coalesces artifacts found in layers and creates an IndexReport with the final package details found in the image. This method blocks and when its finished the c.ir field will hold the final IndexReport
type DistSearcher ¶ added in v0.1.3
type DistSearcher struct {
// contains filtered or unexported fields
}
DistSearcher uses ClairCore's heuristic to determine a distribution for a given layer.
The searcher will first see if distribution information exists for the queried layer. Next the searcher will look backwards in the layer history for distribution information. Finally the searcher will look forward in the layer history as a final effort to find distribution info.
func NewDistSearcher ¶ added in v0.1.3
func NewDistSearcher(artifacts []*indexer.LayerArtifacts) DistSearcher
func (DistSearcher) Dists ¶ added in v0.1.3
func (ds DistSearcher) Dists() []*claircore.Distribution
func (DistSearcher) Search ¶ added in v0.1.3
func (ds DistSearcher) Search(n int) (*claircore.Distribution, error)
type PackageSearcher ¶ added in v0.1.3
type PackageSearcher struct {
// contains filtered or unexported fields
}
PackageSearcher tracks the layer's hash and index a package was introduced in.
func NewPackageSearcher ¶ added in v0.1.3
func NewPackageSearcher(layerArtifacts []*indexer.LayerArtifacts) PackageSearcher
NewPackageSearcher contructs a PackageSearcher ready for its Search method to be called