linux

package
v1.5.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

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 NewCoalescer

func NewCoalescer() *Coalescer

NewCoalescer is a constructor for a Coalescer

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

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

func NewDistSearcher(artifacts []*indexer.LayerArtifacts) DistSearcher

func (DistSearcher) Dists

func (ds DistSearcher) Dists() []*claircore.Distribution

func (DistSearcher) Search

func (ds DistSearcher) Search(n int) (*claircore.Distribution, error)

type PackageSearcher

type PackageSearcher struct {
	// contains filtered or unexported fields
}

PackageSearcher tracks the layer's hash and index a package was introduced in.

func NewPackageSearcher

func NewPackageSearcher(layerArtifacts []*indexer.LayerArtifacts) PackageSearcher

NewPackageSearcher contructs a PackageSearcher ready for its Search method to be called

func (*PackageSearcher) Search

func (pi *PackageSearcher) Search(pkg *claircore.Package) (*claircore.Digest, int, error)

Search returns the layer hash and index a package was introduced in.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL