repoid

package
v0.0.0-...-ca91bd3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package repoid implements a survey job reporting on the dnf repositories recorded in Red Hat containers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

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

Analyzer examines dnf history databases.

func (*Analyzer) Analyze

func (r *Analyzer) Analyze(ctx context.Context, contents io.Reader) (any, error)

Analyze implements Analyzer.

func (*Analyzer) Close

func (r *Analyzer) Close() error

Close implements Analyzer.

type Job

type Job struct{}

Job is the main entrypoint.

func (*Job) Analyzer

func (r *Job) Analyzer() (job.Analyzer, error)

Analyzer implements Job.

func (*Job) Close

func (r *Job) Close() error

Close implements Job.

func (*Job) Name

func (*Job) Name() string

Name implements Job.

func (*Job) Record

func (*Job) Record() any

Record implements Job.

func (*Job) Reporter

func (r *Job) Reporter() (job.Reporter, error)

Reporter implements Job.

func (*Job) SelectImage

func (r *Job) SelectImage(_ context.Context, image string) job.LayerSelector

SelectImage implements Job.

type Record

type Record struct {
	Found   bool
	RepoIDs string
}

Record is the data saved for layers

type Reporter

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

Reporter does repoid reporting.

func (*Reporter) Begin

func (r *Reporter) Begin(_ context.Context, w io.Writer) error

Begin implements Reporter.

func (*Reporter) End

func (r *Reporter) End(_ context.Context, w io.Writer) error

End implements Reporter.

func (*Reporter) Record

func (r *Reporter) Record(_ context.Context, w io.Writer, layer string, _ int, v any, e error) error

Record implements Reporter.

type Selector

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

Selector is the layer selector.

func (*Selector) Close

func (s *Selector) Close() error

Close implements LayerSelector.

func (*Selector) SelectLayer

func (s *Selector) SelectLayer(ctx context.Context, l digest.Digest, h *tar.Header) (hit, load bool, err error)

SelectLayer implements LayerSelector.

Jump to

Keyboard shortcuts

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