evalresults

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package evalresults persists an evaluation unit's full-fidelity result entry — the opaque JSON document the in-pod client emitted — in a per-unit ConfigMap, gzip-compressed under the 1 MiB object cap. The bounded summary lives on the EvaluationUnit status; this store carries the everything-else the submitting client reassembles into its local results file. The ConfigMap is owned by its unit, which is owned by its Evaluation: TTL deletion cascades, so a result is retained exactly as long as the submission it belongs to.

Index

Constants

View Source
const DataKey = "entry.json.gz"

DataKey holds the gzipped result entry in the ConfigMap's binaryData.

Variables

This section is empty.

Functions

func Load

func Load(ctx context.Context, r client.Reader, namespace, name string) ([]byte, error)

Load reads a persisted result entry. A missing object or key yields a nil entry and no error: the client treats an absent entry as a unit that produced no result.

func NameFor

func NameFor(unit string) string

NameFor returns the results ConfigMap name for a unit.

func Persist

func Persist(ctx context.Context, c client.Client, namespace string, labels map[string]string,
	owner client.Object, gvk metav1.TypeMeta, entry []byte) (*v1alpha1.TranscriptRef, error)

Persist writes a unit's result entry and returns the reference to record on the unit's status. An empty entry means no object and a nil reference — a unit that failed before producing a result is not an error here.

The write is idempotent: a re-collected unit overwrites its own results object rather than failing on the one it already wrote.

Types

This section is empty.

Jump to

Keyboard shortcuts

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