linux

package
v1.1.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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 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

func (*PackageSearcher) Search added in v0.1.3

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