evaluation

package
v0.0.0-...-cdd39c7 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerClient

type ContainerClient interface {
	Listener(ctx context.Context) (<-chan clients.ContainerImage, error)
}

type Evaluator

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

func NewEvaluator

func NewEvaluator(
	tagLister *tags.TagLister,
	versionChecker *version.Checker,
	containerClient ContainerClient,
	logger *slog.Logger,
) (*Evaluator, error)

func (*Evaluator) Metrics

func (e *Evaluator) Metrics() []prometheus.Metric

func (*Evaluator) Run

func (e *Evaluator) Run(ctx context.Context) error

type Metric

type Metric struct {
	Labels prometheus.Labels
	Value  float64
}

Jump to

Keyboard shortcuts

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